Writing to a cartridge-type, single-file-format tape during migration

During volume migration, DFSMShsm opens the output data set when it processes the first eligible user data set. DFSMShsm writes the migration copy and then updates the control data set records. After current processing has been completed, the tape is already positioned to receive the next migrated data set. If a failure occurs, DFSMShsm marks the cartridge-type tape volume full and selects another tape volume. Migration processing continues.

When the volume migration task has no more volumes to process, the DFSMShsm tape data set is closed and the output tapes are deallocated.

If an I/O error occurs on the source data but does not prevent DFSMShsm from using the cartridge-type tape volume, DFSMShsm adds a data set entry to the TTOC for the failing data set and immediately invalidates the entry.

When end-of-volume is reached while DFSMShsm is writing a 16KB block on a cartridge-type, single-file-format tape volume, DFSMShsm does normal end-of-volume processing.

When individual user data sets migrate to a cartridge-type tape volume, DFSMShsm closes the DFSMShsm tape data set only after all individual data set requests on the migration queue have been processed.