Copy to a New SMS Data Set Using LIKE (z/OS to z/OS)

This COPY statement transmits a sequential file to a new SMS-controlled file at another site. The new data set will be allocated using the DCB parameters from the data set specified on the LIKE parameter.

COPY  FROM  (DSN=SEQ.SOURCE)          -
      TO    (DSN=SEQ.DEST             -
             LIKE=MODEL.DATASET.DEST  -
             STORCLAS=SCLASS1         -
             MGMTCLAS=MCLASS1)