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

This COPY statement transmits a VSAM RRDS file to a new VSAM RRDS at another site. The RECORG parameter specifies that the target VSAM data set is an RRDS. The LRECL parameter specifies the maximum length of a record in the VSAM data set.

COPY  FROM   (DSN=VSAM.RRDS.SOURCE)  -
      TO     (DSN=VSAM.RRDS.DEST     -
              DISP=(NEW,CATLG)       -
              RECORG=RR              -
              LRECL=300              -
              STORCLAS=SCLASS1       -
              MGMTCLAS=MCLASS1)