Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FROMVOL | From volume identifier | Character value, *MOUNTED | Required, Positional 1 |
TOVOL | To volume identifier | Character value, *MOUNTED | Required, Positional 2 |
NEWVOL | New volume identifier | Character value, *TOVOL, *FROMVOL | Optional, Positional 3 |
CLEAR | Clear | *NO, *YES | Optional |
FROMDEV | From device | Name | Optional |
TODEV | To device | Name | Optional |
ALWMEDERR | Allow media errors | *NONE, *FILE | Optional |
OUTPUT | Output | *ERROR, *NONE | Optional |
FROMENDOPT | From end of media option | *LEAVE, *UNLOAD | Optional |
TOENDOPT | To end of media option | *LEAVE, *UNLOAD | Optional |
Top |
Specifies the volume identifier of the optical volume being duplicated. To determine the volume identifier of media not in an optical media library issue the following Display Optical CL command: DSPOPT VOL(*MOUNTED) DEV(device).
Note: This value is not valid for volumes in optical media library devices.
Top |
Specifies the volume identifier of the optical volume being created (new volume). This volume must have the same physical characteristics as the volume specified on the FROMVOL parameter, but cannot be the volume on the opposite side of the cartridge. If the volume specified is WORM (write-once-read-many) media, it must be a volume that is not initialized. Use the Display Optical (DSPOPT) CL command to determine the physical characteristics of an optical volume.
Note: This value is not valid for volumes in optical media library devices.
Top |
Specifies the new volume identifier of the to-volume after the duplication is complete.
Top |
Indicates whether to re-initialize the target optical volume if the volume is found to be already initialized.
Note: This parameter is ignored if the volume is WORM (write-once-read-many) media.
Note: For media type *ERASE, specifying *YES will result in all existing data being erased prior to the start of the duplication process.
For media type *DVD-RAM, specifying *YES will not result in existing data being erased prior to the start of the duplication process. Though the data is not erased, access to the data is lost. If it is required that data on *DVD-RAM media be erased, initialize the volume using Initialize Optical (INZOPT) prior to running DUPOPT. Specify the CLEAR(*YES) parameter on the Initialize Optical (INZOPT) CL command.
Top |
Specifies the optical device which contains the from-volume.
Note: This parameter is only required if parameter FROMVOL is specified as *MOUNTED.
Top |
Specifies the optical device which contains the to-volume.
Note: This parameter is only required if parameter TOVOL is specified as *MOUNTED.
Top |
Specifies whether or not the Duplicate Optical (DUPOPT) command should terminate if an error is encountered while trying to duplicate the file data areas.
Top |
Specifies whether or not the output from the command is printed with the job's spooled output.
Note: This parameter is valid only when *FILE is specified for the Allow media errors (ALWMEDERR) parameter.
Top |
After the DUPOPT request has completed, specifies whether to leave or unload the from-volume from the optical device in which it is located.
Note: This parameter is ignored if the from-volume is in an optical media library device.
Top |
After the DUPOPT request has completed, specifies whether to leave or unload the to-volume from the optical device in which it is located.
Note: This parameter is ignored if the to-volume is in an optical media library device.
Top |
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.
Top |
*ESCAPE Messages
Top |