The MOVE VOLUME statement is used to move all the data sets residing
on a specified volume. The COPY VOLUME statement is used to copy all
the data sets residing on a specified volume.
Any catalog entries associated with the data sets remain unchanged.
Data sets to be moved or copied must reside on DASD volumes.
The syntax of the MOVE VOLUME and COPY VOLUME statements is:
Label |
Statement |
Parameters |
---|
[label] |
{MOVE| |
VOLUME=device=serial |
|
COPY} |
,TO=device=list |
|
|
[,PASSWORD] |
|
|
[,CATLG] |
|
|
[,TODD=ddname] |
|
|
[,UNLOAD] |
|
|
[,COPYAUTH] |
Note: CATLG may only be coded with COPY VOLUME
|
where:
- VOLUME=device=serial
- specifies the device type and volume serial number of the source
volume.
- TO=device=serial
- specifies the device type and volume serial number of the volume
to which the volume of data sets is to be moved or copied.
- PASSWORD
- specifies that password protected data sets are included in
the operation. This is not VSAM password protection, but the OS password
scheme. If PASSWORD is omitted, only data sets that are not protected
are copied or moved.
- CATLG
- specifies that the copied data sets are to be cataloged.
For
proper results, this control statement option must be used instead
of specifying the "CATLG" option in the "DISP" parameter
in the DD statements.
CATLG may only be coded with COPY VOLUME.
- TODD=ddname
- specifies the name of a DD statement from which DCB (except
RECFM, BLKSIZE and LRECL) and LABEL (except data set sequence number)
information for output data sets on tape volumes can be obtained.
The
DD statement describes the mode and label information to be used when
creating output data sets on tape volumes. Record format, blocksize
and logical record length information, if coded, is ignored.
When
UNLOAD is specified, it describes the mode and label information to
be used when creating unloaded versions of data sets on tape volumes.
Record format, blocksize and logical record length information, if
coded, must specify (RECFM=FB, BLKSIZE=800, LRECL=80).
TODD
must be specified in the control statement when an expiration data
(EXPDT) or retention period (RETPD) is to be created or changed.
The
TODD parameter can be omitted for 9-track tapes with standard labels
and default density for the unit type specified.
- UNLOAD
- specifies that the data sets are to be unloaded to the receiving
volumes.
- COPYAUTH
- specifies that the receiving data set is to be given the same
access list as the input data set, if the input data set is RACF protected
and the output data set is not preallocated.