Previous Topic: Writing the Primary Data Set to TapeNext Topic: Reading Data Sets from Tape


Writing a Secondary Data Set to Tape

This EXEC reads the file TEST FILE from your A disk and writes it as another generation of the data set name TEST.DATA.SET on the tapes used in the last example. The EXEC uses the sequence number to specify that the new data set is to be the second data set on the tapes.

The EXEC uses the CA VM:Tape LIST command to obtain the volser of the first tape in the multivolume sequence. The EXEC specifies on the LIST command that you want the tapes that contain the most recent generation of the primary data set. The EXEC then checks for a return code to make sure that the command completed successfully.

Writing a Secondary Data Set to Tape

To write other secondary data sets, specify the data set name for each new data set and the sequence number of the data set on the tape.