Copy a Data Set with a Security Profile (z/OS to z/OS)

This COPY statement transmits a sequential file to a new sequential file at another site. The security profile of the model data set is used as a model to create a generic security profile for the new data set.

COPY  FROM  (DSN=SEQ.SOURCE)                      -
      TO    (DSN=SEQ.DEST                         -
             DISP=(NEW,CATLG)                     -
             SECMODEL=(SEQ.DATASET.DEST,GENERIC)  -
             STORCLAS=SCLASS1                     -
             MGMTCLAS=MCLASS1)