Copy Files Between UNIX and z/OS

This Process copies a file from UNIX to z/OS. The Process was initiated from the UNIX node. The ckpt parameter specifies that no checkpoints will be taken. The ckpt parameter is generally coded between the FROM and TO clauses of the COPY statement.

OS390xx  process      snode=OS390.node
step01   copy  from  (file=file1
                      pnode)
                      ckpt=no
               to    (file=file2
                      dcb=(dsorg=PS,
                      recfm=FB,
                      lrecl=80,
                      blksize=2400)
                      space=(TRK,(1,,))
                      snode
                      disp=rpl)
         pend

This Process, submitted from the z/OS node, copies a text file from UNIX to z/OS. The DSN and SYSOPTS strings for the UNIX system must be in the proper case for UNIX and enclosed in double quotation marks.

PROC2   PROCESS      SNODE=UNIX.NODE
STEP01  COPY  FROM  (DSN="/company/payroll/monthly/jan"            -
                     SYSOPTS=":datatype=text:"                     -
                     SNODE)                                        -
              TO    (DSN=OS390.PAYROLL.MONTHLY.JANUARY             -
                     DISP=(NEW,CATLG)                              -
                     SPACE=(23040,(2,1))                           -
                     DCB=(RECFM=U,LRECL=0,BLKSIZE=23040,DSORG=PS)  -
                     PNODE)