DISK DISK Use the DISK command to: Punch CMS disk files to the virtual spooled card punch in a special
format which allows the punched deck to be restored to disk in the
form of the original disk file. Restore punched decks created by the DISK DUMP command to a disk
file.
The format of the DISK command is: r -----------------------, , DISK , {
DUMP
LOAD fn ft [fm]
} I , L
________________ . _________ -J DUMP fn ft fm
punches the specified file (fn ft fm). The file may have
either fixed-or variable-length records. After all data is
punched, an end-of-file card is created with an N in column 5.
This card contains directory information and must remain in
the deck. The original disk file is retained. LOAD loads a file or files from the spooled card reader and writes
them as files on your A-disk. The filename and filetype are obtained from the card stream. If a file exists with the
same filename and filetype as one of those in the card stream,
it is replaced.
Note: DISK LOAD file identifiers are those of the specified fIle issued by the DISK DUMP command.
1. To read files with the DISK LOAD command, they must have been
created bv the DISK DUMP command. To load spooled reader files
created in any other manner, you should use the READ:ARD command.
2. To load reader files created by DISK DUMP, you must issue the DISK LOAD command for each spool file. For example, if you enter:
disk dump sourcel assemble
disk dump source2 assemble
the virtual machine that receives the files must issue the DISK LOAD command twice to read the files onto disk. If you use the CP SPOOL command to spool continuous, for example:
cp spool punch cont
disk dump sourcel assemble
disk dump source2 assemble
cp spool punch nocont close
then you only need to issue the DISK LOAD command once to read both
files.
58 IBM VM/370 eMS Command and Macro Reference
DISK is no response to the DISK DUMP command. The file identifiers of
each file loaded are displayed when you issue the DISK LJAD command:
fn ft fm DMSDSK002E FILE 'fn ft fm' NOT FOUND RC=28 DMSDSK014E INVALID FUNCTION 'function' RC=24 DMSDSK037E DISK 'A' IS READ/ONLY RC=36 DMSDSK047E NO FUNCTION SPECIFIED RC=24 INVALID MODE 'mode' RC=24 DMSDSK054E INCOMPLETE FILEID SPECIFIED RC=24 DMSDSK062E INVALID * IN FILEID ['fn ft fm'] RC=20 DMSDSK010E INVALID PARAMETER 'parameter' RC=24 DMSDSK017E END CARD MISSING FROM INPUT DECK RC=32 DMSDSK078E INVALID CARD IN INPUT DECK RC=32 DMSDSK104S ERROR Inn' READING FILE 'fn ft fm' FROM DISK RC=100 DMSDSK105S ERROR inn' WRITING FILE ifn it fmi ON DISK RC=lOO DMSDSK118S ERROR PUNCHING FILE RC=100 DMSDSK124S ERROR READING CARD FILE RC=100 DMSDSK205W READER EMPTY OR NOT READY RC=8
section 2. CMS Commands 59
Previous Page Next Page