Start of change

Copying optical volume data

Optical files can be copied from one or more volumes or directories to other volumes or directories.

To copy optical files in one or all of the directories on a volume to another volume or directory, select option 3 (Copy) in the Opt column on the Work with Optical Volumes display next to the volume with the directory you want copied.

The Copy Optical (CPYOPT) display shown in the figure below appears and prompts you for more information.


Copy Optical
(CPYOPT)

Copy Optical (CPYOPT)

This command is not allowed for LAN-attached optical devices. If you attempt to use a LAN-attached optical device, and error message is issued.

The name of the volume appears on the display. You must specify the name of the directory to be copied from and the volume to receive the copy (the volume must be initialized before copying). If you are copying a full volume, specify an unused volume to receive the copied files to be sure that enough space is available.

This command does not delete files for you. Therefore, if you use this command to make additional copies, you must delete files from the target volume that have been deleted from the source volume.

When the copy request is completed, a message is added to the job log stating the number of files copied successfully and the number of files that were not copied. For each file that is not copied, a message stating the full file name is added to the job log. For each directory processed, a message is added to the job log stating the number of files copied successfully and the number of files that were not copied successfully.

Select files to copy (SLTFILE) parameter

The Select files to copy (SLTFILE) parameter indicates how files are to be selected for copying. You can select whether to replace files that already exist on the volume to which you are copying. A value of *CHANGED specifies that a file is copied if it does not exist on the target volume, or if the file is more current than the one on the target volume. A value of *NEW specifies that only files that do not already exist on the To volume identifier field are copied. A value of *ALL specifies that all files are copied, even if they exist with the same creation date.

Copy option (COPYTYPE) parameter

The Copy option (COPYTYPE) parameter indicates which resources are used to perform the copy operation. A value of *IOP specifies that the copy operation will have better performance but will slow down other requests to the optical media library. A value of *SYSTEM specifies that the copy request will share the optical media library resources with other requests but will cause the copy request to take longer.

Starting date and time (FROMTIME) parameter

The starting date and time (FROMTIME) parameter is optional and can be used to further restrict the number of files that are copied. Files from the source volume that have a creation or modification date and time greater than or equal to the date and time entered on this parameter are selected to be copied.

Example: Copy optical volume data

To make a complete copy of VOLA on VOLB, use the following command:

CPYOPT FROMVOL(VOLA) FROMDIR(’/’) TOVOL(VOLB) TODIR(*FROMDIR) SLTFILE(*CHANGED) 
CPYSUBDIR(*YES) CRTDIR(*YES) ALWCPYOPP(*NO) COPYTYPE(*IOP)
The Copy Optical (CPYOPT) command applies to:
  • Volumes in directly attached optical media libraries
  • Volumes in CD-ROM or DVD devices
  • Volumes in virtual optical devices
End of change