Previous Topic: Pre-Mounting a Tape and Writing a Data Set to ItNext Topic: SLMOUNT EXEC


Pre-Mounting a Tape and Reading a Data Set from the Tape

This EXEC uses the CA VM:Tape MOUNT command to pre-mount the tape that contains the data set name VERY.LARGE.FILE. The EXEC checks for a return code, then obtains the volser of the tape and the data set to read from the MOUNT command. The EXEC reads the data set from the tape and writes it to the file BIG FILE on your A disk.

'VMTAPE MOUNT * DSN VERY.LARGE.FILE ( WAIT STACK LIFO'
if RC < > 0 then exit RC
pull . volser dsn
'FILEDEF INMOVE TAP1 SL 1'
queue dsn
'LABELDEF INMOVE FID ?'
'FILEDEF OUTMOVE DISK BIG FILE A'

'MOVEFILE INMOVE OUTMOVE'