Create and Copy a PDSE Data Set (z/OS to z/OS)

This COPY statement transmits a PDS file to a new PDSE file at another site. The DSNTYPE parameter is used to specify that the receiving data set is a LIBRARY (another name for a PDSE file). The data set is also allocated with the STORCLAS parameter to ensure that the SMS controls the data set.

COPY  FROM  (DSN=PDS.SOURCE)    -
      TO    (DSN=PDSE.DEST      -
             DSNTYPE=LIBRARY    -
             DATACLAS=DCLASS1   -
             STORCLAS=SCLASS1)