Copy a File from Connect:Direct for z/OS® to Connect:Direct for i5/OS

In this example COPY statement, the member FILEA in PDS USER.TESTLIB on the z/OS system is copied to the member TEST in the TESTFILES/PROCLIB file on the IBM® Connect:Direct® i5/OS node. If the member TEST already exists in the file TESTFILES/PROCLIB on the IBM Connect:Direct i5/OS node, it is replaced by this version.

/* COPY FROM: SOURCE DATA SET ATTRIBUTES  (z/OS) */
STEP01     COPY   FROM  (DSN=USER.TESTLIB(FILEA)             -
                        PNODE                                -
                        DISP=SHR                             -
                        )                                    -
/* COPY TO: DESTINATION DATA SET ATTRIBUTES (i5/OS) */
                  TO    (SNODE                               -
                        DSN=‘TESTFILES/PROCLIB(TEST)’        -
                        DISP=RPL                             -
                        SYSOPTS=\"\                          -
                                \TYPE(MBR)\                  -
                                \TEXT(‘COPIED FROM FILEA’)\  -
                                \"\                          -
                        )