Previous Topic: Writing Data Sets to TapeNext Topic: Writing a Secondary Data Set to Tape


Writing the Primary Data Set to Tape

This EXEC reads the file TEST FILE from your A disk and writes it as a generation of the data set name TEST.DATA.SET on scratch tapes. The EXEC uses the sequence number to specify that the new data set is to be the primary data set on the tapes.

The EXEC passes the retention period for the tape to CA VM:Tape through the SYSPARM parameter on the FILEDEF command. The EXEC uses the sequence number to specify that the data set is to be the first on the tape. After the data set is written, the EXEC detaches the tape drive on which the tape was mounted.

Note: The terms data set name (DSN) and fileid (FID) are synonymous.