IND$FILE options
A reference list of the common IND$FILE options and how they behave.
Options follow an open parenthesis after the data set name. Use the ones your site allows. Names and defaults differ between z/OS (TSO) and CMS.
IND$FILE PUT 'USER.TEST.DATA' (ASCII CRLF RECFM(V) LRECL(255)
IND$FILE GET 'USER.TEST.DATA' (ASCII CRLF
Common options
ASCII translate to or from ASCII (text)
CRLF add or remove line ends at record boundaries
APPEND add to the end of an existing file (PUT)
Allocation options (z/OS, new data sets)
RECFM(F) fixed length records
RECFM(V) variable length records
RECFM(U) undefined records
LRECL(n) record length
BLKSIZE(n) block size
TRACKS space is counted in tracks
CYLINDERS space is counted in cylinders
SPACE(p,s) primary and secondary space
AVBLOCK(n) average block size for space
Notes
- Without
ASCIInothing is translated (a binary transfer). - A data set name in single quotes is fully qualified. Without quotes your prefix is added.
- A partitioned data set member is written as
'DSN(MEMBER)'. LRECLshould be at least as long as your longest line. Longer lines are cut or wrapped, depending on the host.- Options that the host does not know are errors. Check the spelling and the case.
- Which options are allowed may be limited by the host's IND$FILE version.