Copy an Entire PDS (z/OS to z/OS)

This COPY statement transmits a PDS to a new file located at another site. Because allocation data is not included in the Process, the receiving node allocates the file using the same file attributes as the source data set. Both checkpointing and compression are requested within the Process. Checkpointing only takes place at the member level when copying a PDS.

COPY  FROM  (DSN=PDS.SOURCE)   -
             CKPT=1M           -
             DISP=SHR          -
             COMPRESS          -
      TO    (DSN=PDS.DEST)     -
             DISP=RPL