CL Command Reference - DUPOPT

CL Command List > DUPOPT Reference

Description:

The Duplicate Optical (DUPOPT) command creates a duplicate optical volume. The duplicate volume is identical to the original volume except for the volume identifier and the time it was created.

Restriction: To use this command you must have *USE authority to the authorization list securing the source volume. You need *ALL authority to the authorization list securing the target volume if it is in an optical media library. You need *CHANGE authority to the authorization list securing the target volume if it is in an optical device.


Examples:

Example 1: Duplicate an Optical Volume When the Volume Names are Known.

DUPOPT FROMVOL(VOL01) TOVOL(VOL02) NEWVOL(*TOVOL) CLEAR(*YES)

This command creates a duplicate of the optical volume VOL01 on volume VOL02, which keeps the same volume identifier. VOL02 will be re-initialized prior to the duplication process.



Example 2: Duplicate an Optical Volume When the Device Names are Known.

DUPOPT FROMVOL(*MOUNTED) TOVOL(*MOUNTED) NEWVOL(BKP001)
CLEAR(*YES) FROMDEV(OPT01) TODEV(OPT02)
FROMENDOPT(*LEAVE) TOENDOPT(*UNLOAD)

This command duplicates the optical volume in optical device OPT01 onto the volume in device OPT02. The optical volume in device OPT02 is re-initialized prior to the duplication process. The volume in device OPT01 will be left in the device after the duplication process completes. The volume in device OPT02 will be unloaded after the duplication process completes and will have a volume identifier of BKP001.



Example 3: Duplicate an Optical Volume and Continue the Duplication if Damaged Files are Found.

DUPOPT FROMVOL(VOL01) TOVOL(VOL02) NEWVOL(*TOVOL)
CLEAR(*YES) ALWMEDERR(*FILE) OUTPUT(*ERROR)

This command creates a duplicate of the optical volume VOL01 on volume VOL02, which keeps the same volume identifier. VOL02 will be re-initialized prior to the duplication process. If there are any damaged files on VOL01 the duplication will continue and the damaged files will not be duplicated. The names of the damaged files will be printed to the jobĄ¯s spooled output.



Example 4: Duplicate an Exact Copy of a Volume Using NEWVOL(*FROMVOL).

DUPOPT FROMVOL(VOL01) TOVOL(VOL02) NEWVOL(*FROMVOL)
CLEAR(*YES) TODEV(OPT02) TOENDOPT(*UNLOAD)

This command creates a duplicate of the optical volume VOL01 on volume VOL02. VOL02 will be re-initialized prior to the duplication process. The volume in device OPT02 will be unloaded after the duplication process completes and will have a volume identifier of VOL01.