If you are issuing a FILEDEF for a DOS file, note that the OS prograa that will use the DOS file must have a DCB for it. For "ddna.e" in the
FILEDEF command line, use the ddname in that DCB.With the DSJ operand,
enter the file-id of theDOS file. Sometimes, CMS issues the FILEDEF command for you. Although the ces MOVEFILE command, the supported CMS program product interfaces, and the CMS OPEN routine each a default FILEDEF, you should issue the
FILEDEF command yourself to ensure the appropriate file is defined.
After you have issued theACCESS and FILEDEF commands for an CS sequential or partitioned data set or DOS sequential file, CBS coa.ands (such as ASSEMBLE and STATE) can refer to the OS data set or DOS file
just as if it were aCMS file. Several other CMS commands can be used with OS data sets and Des
files that do not reside onCMS disks. See the Rgfgrgngg for a complete description of the CMS ACCESS, FILEDE', LISTDS, MOVEFILE, QUERY, RELEASE, and STATE commands.
For restrictions on readingOS data sets and tos files under CBS. see
theEla1!ni1!g ang 2:ystg! Gu.!Qg. The CMS FILEDEF command allows you to specify the I/O device and the
file characteristics to be used by aprograa at execution ti.e. In
conjunction with theOS simulation scheme, FILEDEF siaulates the
functions of the data definition JCL statement.
FILEDEF may be used only with programs usingOS macros and functions.
For example:
filedef file1 disk proga data a1
After issuing this command, your program referring to FILE1 would accessPROGA DATA on your A-disk.
If you wished to supply data from your terminal for FILE1, you could
issue the command:
filedef file1 terminal
and enter the data for your program without recoapiling.
fi tapein tap2 (recfm fb lrecl50 block 100 9track den 800) After issuing this command, programs referring to TAPEIN will access a
tape at virtual address 182. (Each tape unit in theeMS environaent bas
a symbolic name associated with it.) The tape must have beenpreviously attached to the virtual machine by the VM/370 operator.
TheAUXPROC option can only be used by a program call to FILEDEF and not
from the terminal. TheCMS language interface prograas use this feature
for specialI/O handling of certain (utility) data sets.
282IBM VM/370 System Programmer's Guide
FILEDEF command line, use the ddname in that DCB.
enter the file-id of the
FILEDEF command yourself to ensure the appropriate file is defined.
After you have issued the
just as if it were a
files that do not reside on
For restrictions on reading
the
file characteristics to be used by a
conjunction with the
functions of the data definition JCL statement.
FILEDEF may be used only with programs using
For example:
filedef file1 disk proga data a1
After issuing this command, your program referring to FILE1 would access
If you wished to supply data from your terminal for FILE1, you could
issue the command:
filedef file1 terminal
and enter the data for your program without recoapiling.
fi tapein tap2 (recfm fb lrecl
tape at virtual address 182. (Each tape unit in the
a symbolic name associated with it.) The tape must have been
The
from the terminal. The
for special
282