Copy One Member of a PDS (z/OS to z/OS)
This example illustrates three ways to copy a single member of a PDS.
- In STEP01, the FROM and TO member names are specified in the data set names.
- In STEP02, the FROM and TO member names are specified in the data set names, with the output member name changed.
- STEP03 uses the SELECT parameter as part of the FROM clause of
the COPY statement, with a new member name specified on the data set
name for the destination data set.
STEP01 COPY FROM (DSN=PDS.SOURCE(MEMBER)) - TO (DSN=PDS.DEST(MEMBER) - DISP=RPL) STEP02 COPY FROM (DSN=PDS.SOURCE(OLDMEM)) - TO (DSN=PDS.DEST(NEWNAME) - DISP=RPL) STEP03 COPY FROM (DSN=PDS.SOURCE - SELECT=OLDMEM) - TO (DSN=PDS.DEST(NEWNAME) - DISP=RPL)