Copy a KSDS that Must be Extended

This COPY statement copies and sends a basic key-sequenced data set (KSDS) to the secondary node as a new KSDS that is required to be extended. Because the LIKE parameter is not included, the KEYLEN, KEYOFF, AND LRECL parameters had to be specified.

COPY FROM (PNODE DSN=EPETE1.KSDS    DISP=(SHR)   )     -
     TO   (SNODE DSN=EPETE2.KSDSE DISP=(NEW,CATLG)     -
           DSNTYPE=EXTREQ KEYLEN=8 KEYOFF=6 LRECL=80)