Previous Topic: Writing to Tape Without a Data Set NameNext Topic: Alternating Drives


Reading a Tape Without a Data Set Name

This EXEC reads the primary data set on the tape and writes it to the file TINY FILE on your A disk. Because there is no data set name, the EXEC prompts for the volser of the tape.

say 'What volume do you wish to read?'
pull volser.
'FILEDEF INMOVE TAP1 SL1'
'LABELDEF INMOVE VOLID 'volser' FSEQ 1'
'FILEDEF OUTMOVE DISK TINY FILE A'
'MOVEFILE INMOVE OUTMOVE'