CL Command Reference - DUPTAP
CL Command List > DUPTAP Reference
Description:
The Duplicate Tape (DUPTAP) command copies the contents of one tape to another tape.
Notes:
1. The density field in the file header labels are updated to reflect the true density.
2. Byte 80 in the volume label of a tape written on device type 6157 is reset from a ¡¯Q¡¯ to a blank.
Restrictions:
. You must have two tape drives or a tape media library device with two tape resources to use this command.
. A file that spans volumes must have both partial files duplicated at the same time. That is, duplicating a tape that ends in a partial file, followed by appending the second part of the file to the end of the tape is not allowed. You must duplicate both parts of the file at the same time by specifying multiple volumes on the FROMVOL parameter.
Examples:
Example 1: Duplicating a Single Volume to a Single Volume
DUPTAP FROMDEV(TAPE01) TODEV(TAPE02)
This command duplicates the tape volume mounted on device TAPE01 onto the tape volume mounted on device TAPE02.
Example 2: Appending a Volume Set to the End of a Single Volume
DUPTAP FROMDEV(TAPE01) TODEV(TAPE02) FROMVOL( VOL001 VOL002)
TOVOL(VOLABC) FROMSEQNBR(*ALL) TOSEQNBR(*END)
This command duplicates all files from the tape volumes VOL001 and VOL002 onto the end of the to-volume VOLABC on device TAPE02.