April 27, 1981
filedef inputdd disk myinput file a1
If the input file you want to use is on anOS disk accessed as your
C-disk, and it has a data set name ofPAYROLL.RECORDS.AUGUST, then your
FILEDEF command might be:
filedef inputdd c1 dsn payroll records auqustSPECIFYING THE DEVICE TYPE For input files, the device type you enter on the FILEDEF command
indicates the device from which you want records read. It can be DISK,
TERMINAL, READEF (for input from real cards or virtual cards), orTAPn (for tape). Using the above example, if your input file is to be read
from your virtual card reader, the FILEDEF command might be as follows:
filedef inputdd readerOr, if you were reading from a tape attached to your virtual machine at
virtual address 181(TAP1): filedef inputdd tap1
For output files, the device you specify can be DISK, PRINTER,PUNCH, TAPn (tape), or TERMINAL.
If you do not want any realI/O performed during the execution of a
proqram for a disk input or outputfile, you can specify the device type
asDUMMY: filedef inputdd dummy
ENTERING FILE IDENTIFICATIONS
If you are using aCMS disk file for your input or output, you specify:
filedef ddname disk filename filetype filemode
Note that if * is used for the filemode of an output file, unpredictable
results may occur.
The filemode field is optional; if you do not specify it, your A-disk is
assumed. If you want an output file to be constructed in as simulated
data set format, you must specify the filemode number as4. For
example, a proqram contains a DeB for an output file with a ddname ofOUTPUTDD, and you are using it to create a CMS file named DAILY OUTPUT on your B-disk:
filedef outputdd disk daily outputb4 If your input file is an as data set on an as disk, you can identify
it in several ways:• If the data set name has only two
HEALTH.RECORDS, you can specify:
filedef inputdd disk health recordsbl 132 IBM VM/370 eMS User's Guide
qualifiers, for example
filedef inputdd disk myinput file a1
If the input file you want to use is on an
C-disk, and it has a data set name of
FILEDEF command might be:
filedef inputdd c1 dsn payroll records auqust
indicates the device from which you want records read. It can be DISK,
TERMINAL, READEF (for input from real cards or virtual cards), or
from your virtual card reader, the FILEDEF command might be as follows:
filedef inputdd reader
virtual address 181
For output files, the device you specify can be DISK, PRINTER,
If you do not want any real
proqram for a disk input or output
as
ENTERING FILE IDENTIFICATIONS
If you are using a
filedef ddname disk filename filetype filemode
Note that if * is used for the filemode of an output file, unpredictable
results may occur.
The filemode field is optional; if you do not specify it, your A-disk is
assumed. If you want an output file to be constructed in as simulated
data set format, you must specify the filemode number as
example, a proqram contains a DeB for an output file with a ddname of
filedef outputdd disk daily output
it in several ways:
HEALTH.
filedef inputdd disk health records
qualifiers, for example