Copy a VSE VSAM File to an i5/OS Spooled File

This Process copies a VSAM file from a VSE node to an i5/OS spooled file. Page size is optional and dependent on the printer device.

PROC01  PROCESS      PNODE=SC.VSE.NODE1 SNODE=OS400.NODE2  -
                     SNODEID=(OS400ND,PWD400)
STEP01  COPY  FROM  (DSN=VSE.TEST.VSAM                     -
                     DCB=(DSORG=VSAM)                      -
                     DISP=SHR)                             -
              TO    (DSN=’DATAFF’                          -
                     SYSOPTS=\"TYPE(SPLF)\                 -
                             \CTLCHAR(*NONE)\              -
                             \PAGESIZE(66 378)\            -
                             \SPOOL(*YES)"\                -
                     SNODE)