z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


REPLACE Statement

z/OS DFSMSdfp Utilities
SC23-6864-00

The REPLACE statement is used with a MOVE PDS or COPY PDS statement to exclude a member from the operation and replace it with a member from another partitioned data set. The new member must have the same name as the old member and must possess compatible record characteristics. Any number of REPLACE statements can modify a MOVE PDS or COPY PDS statement. The REPLACE statement is invalid when data is unloaded or when unloaded data is moved or copied.

The syntax of the REPLACE statement is:

Label Statement Parameters

[label]

REPLACE

DSNAME=name
,MEMBER=name
[,{FROM=device=serial|

where:
DSNAME=name
specifies the fully qualified name of the partitioned data set that contains the replacement member.
MEMBER=membername
specifies the name of one member in the partitioned data set named in the DSNAME parameter. The member replaces an identically named member in the partitioned data set being moved or copied. Neither the partitioned data set containing the named member nor the member is scratched.
FROM=device=serial
specifies the device type and serial number of the volume on which the data set which contains the replacement member 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.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014