IND$FILE file transfer
How file transfer works inside a 3270 session, the GET and PUT commands, and what ASCII and CRLF do.
IND$FILE is the host program that moves files between a 3270 terminal and the host. The terminal sends the transfer inside the 3270 session itself. No second connection is used.
What you need
- The host must have IND$FILE installed and allowed for your user.
- You must be at a place where you can start it: a TSO command line or ISPF option 6, or the CMS command line. Not every screen allows it. A CICS screen needs a host-side transaction that does the same.
- A terminal that supports it. Without it the transfer menu does nothing.
The command
You normally do not type it. The terminal types it for you when you start a transfer. Its shape is:
IND$FILE PUT dsname (options send a file to the host
IND$FILE GET dsname (options get a file from the host
The first word is run on the host. dsname is the host data set (TSO, quoted for a fully qualified name) or the file name (CMS). Options come after an open parenthesis.
ASCII and CRLF
The host stores text in EBCDIC, with fixed or variable length records. For text files, turn on:
- ASCII: translate between ASCII (your device) and EBCDIC (the host).
- CRLF: treat line ends as record boundaries. Sending: each line becomes a record. Receiving: records get line ends.
For binary files (a zip, an image) turn both off, so no translation happens. The host data set must then be set up to hold the raw bytes. To move files over SSH instead, see SFTP and scp to z/OS: EBCDIC text conversion and data sets.
Data set options for a new file (z/OS)
When you upload to a data set that does not exist, you can say how to create it. Common options are RECFM(F|V|U), LRECL(n), BLKSIZE(n), space in TRACKS or CYLINDERS, and SPACE(primary,secondary). See the option list.
Common problems
- The transfer never starts or says the host program was not found. IND$FILE is not installed, is not on that screen, or the host user is not allowed.
- Garbled text. ASCII was off for a text file, or the wrong code page was used.
- Extra blank lines or missing line ends. CRLF is on for a binary file, or off for a text one.
- Out-of-space errors. The host data set is too small. Allocate with larger space.
- Slow. A larger data stream buffer helps if the client lets you set it.