Page of GC20-1819-2 As Updated April 27, 1981 by TNt SN25-0828 For 5748-XE1 To punch the output file onto cards, you would issue:
filedef out punch (lrecl 80 recfm f You must supply file format information on the FltEDEF command line
whenever it is not supplied on the DCB macro, except for existing disk
files.
Note that CMS mode 4 variable length files that are created using os programs include RDW's and BDW's. If you are not using these files, be sure to add 4 to the LRECL of V-format files in order to accommodate the RDW and to add 4 to the BIKSIZE in order to accommodate the BDW on read
and write buffers. Usually, when vou execute one of the language processors, all
existing file definitions are cleared. If the development of a program
requires you to recompile and re-execute it frequently, you might want
to use the PERM option when you issue file definitions for your input
and output files. For example:
cp spool punch to *
filedef indd disk test file a1 (lrecl 80 perm
filedef outdd punch (lrecl 80 perm
In this example, since you spooled your virtual punch to your own
virtual card reader, output files are placed in your virtual reader. You can either read or delete them.
All file definitions issued with the PERM option stay in effect until
you log off, specifically clear those definitions, or redefine them:
filedef indd clear
filedef outdd tap1 (lrecl 80 In the above example, the definition for INDD is cleared; OUTDD is
redefined as a tape file.
When you issue the command:
filedef * clear
all file definitions are cleared, except those you enter with the PERM option. When a program abends, or when you issue the HX Immediate command,
all file definitions are cleared, including those entered with the PERM option. QI2£ When you issue a FILEDEF command for an output file and assign
it a file identifier that is identical to that of an existing CMS file, then when anything is written to that ddname the existing file is
replaced by the new output file. If you want, instead, to have new
records added to the bottom of the existing file, you can use the DISP MOD option:
filedef outdd disk new update a1 (disp mod If the file you want to read is a member of an OS partitioned
data set (or a CMS MACLIE or TXTLIB), you can use the MEMBER option to
specify the membername; for example:
filedef test c dsn sys1 maclib (member test
defines the member TEST from the as macro library SYS1.MACLIB. 134 IBM VM/370 CMS User's Guide
Page of GC20-1819-2 As Updated April 27, 1981 by TNL SN25-0828
For 5748-XE1 This option allows an auxiliary processing routine to receive
control during I/O operating. It is valid only when FILEDEF is executed
by an internal program call and cannot be entered on a terminal command.
For details on how to use this option of the FILEDEF command, see the Creating CMS Files from OS Data Sets If you have data sets on OS disks, or on tapes or cards, you can copy
them into CMS files so that you can edit, modify, or manipulate them with CMS commands. The CMS MOVEFILE command copies os (or CMS) files
from one device to another. You can move data sets from any valid input
device to any valid output device.
Section 8. Developing as Programs Under CMS 134.1
Previous Page Next Page