The MOVE PDS statement is used to move partitioned data sets. When
used in conjunction with INCLUDE, EXCLUDE, REPLACE, or SELECT statements,
the MOVE PDS statement can be used to merge selected members of several
partitioned data sets or to delete members. The source data set is
scratched.
The COPY PDS statement is used to copy partitioned data sets. When
used in conjunction with INCLUDE, EXCLUDE, REPLACE, or SELECT statements,
the COPY PDS statement can be used to merge selected members of several
partitioned data sets or to delete members.
If IEHMOVE is used to allocate space for an output partitioned
data set, the MOVE PDS or COPY PDS statements can be used to expand
a partitioned directory.
If the receiving volume contains a partitioned data set with the
same name, the two data sets are merged.
MOVE PDS causes the appropriate catalog to be updated automatically
unless UNCATLG and FROM are specified. COPY PDS leaves the source
data set cataloged unless UNCATLG or CATLG is specified without the
RENAME and FROM parameters.
The syntax of the MOVE PDS and COPY PDS statements is:
Label |
Statement |
Parameters |
---|
[label] |
{MOVE| |
PDS=name |
|
COPY} |
,TO=device={serial|list} |
|
|
[,{FROM=device=serial}] |
|
|
[,EXPAND=nn] |
|
|
[,UNCATLG] |
|
|
[,CATLG] |
|
|
[,RENAME=name] |
|
|
[,FROMDD=ddname] |
|
|
[,TODD=ddname] |
|
|
[,UNLOAD] |
|
|
[,COPYAUTH] |
Note: CATLG may only be coded with COPY PDS
|
where:
- PDS=name
- specifies the fully qualified name (that is, the name with all
its qualifiers, if any) of the partitioned data set to be moved or
copied.
- TO=device={serial|list}
- specifies the device type and volume serial number of the volume
to which the partitioned data set is to be moved or copied. If you
are unloading the partitioned data set to multiple tape volumes, code
the list of serial numbers in parentheses, separating the numbers
with commas.
- FROM=device=serial
- specifies the device type and serial number of the volume on
which the data set resides.
If the data set is cataloged, do not
code "FROM".
If you want to specify a specific device
rather than device type, code the device number in the device subparameter.
When FROM is used with MOVE PDS, the catalog will not be updated.
If FROM is omitted, the data
set is assumed to be cataloged in the integrated catalog facility
catalog.
- EXPAND=nn
- specifies the decimal number (up to 99) of 256-byte records
to be added to the directory of the specified partitioned data set.
For COPY, EXPAND cannot be specified if space is previously allocated.
For MOVE, EXPAND will be ignored if space is previously allocated.
- UNCATLG
- specifies that the catalog entry pertaining to the source partitioned
data set is to be removed. This parameter should be used only if the
source data set is cataloged. If the volume is identified by FROM,
UNCATLG is ignored. Alias entries in catalogs for the source data
set is lost and can be replaced with access method services if the
data set is later cataloged. For more information, see z/OS DFSMS Access Method Services Commands.
For a MOVE operation, UNCATLG inhibits cataloging of the output data
set.
- CATLG
- specifies that the copied data sets are to be cataloged as described
below.
- The cataloging is done in the integrated catalog facility catalog.
- If the RENAME and FROM parameters are omitted, the entries for
the source data sets are deleted from the appropriate catalog to permit
the copied data sets to be recataloged.
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 PDS.
- RENAME=name
- specifies that the data set is to be renamed, and indicates
the new name.
- FROMDD=ddname
- specifies the name of the DD statement from which DCB and LABEL
information, except data set sequence number, can be obtained for
input data sets on tape volumes. The tape data set must be an unloaded
version of a partitioned data set. The FROMDD operand can be omitted
if the data set has standard labels and resides on a 9-track tape
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 the output data set can be obtained, when the data
set is being unloaded to tape. 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 set is 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.