Connect:Direct for i5/OS Copy Spooled Files Statement

The Connect:Direct® for i5/OS COPY statement is used in a Process initiated on a non-i5/OS node to copy files, members, objects, and spooled files to or from an i5/OS node.

This format is used to copy to a spooled file on a Connect:Direct for i5/OS node. There is no FROM clause.

The following is the Connect:Direct for i5/OS Copy-Spooled Files statement format. Refer to Connect:Direct for i5/OS Process Parameters for more information.

Label Statement Parameters
stepname COPY FROM (
      DSN=`library-name/save-file-name'|
      SNODE
      SYSOPTS="TYPE(OBJ)
      EXITCMD(valid i5/OS command)
      FAILCMD(valid i5/OS command)
      DISP=([SHR | OLD] ,[KEEP | DELETE] ,[KEEP | DELETE])
      )
    TO (
      DSN=`library-name/save-file-name'
      SNODE
      SYSOPTS="TYPE(OBJ)

EXITCMD(valid i5/OS command)

FAILCMD(valid i5/OS command)

MAXRCDS(number | *NOMAX)

ASP(auxiliary-storage-pool)

TEXT(`text-description')

AUT(*EXCLUDE | *CHANGE | *ALL | *USE)"

      DISP=([NEW | OLD | MOD | RPL | SHR])
      )
      COMPRESS [[PRIMEchar =

X`xx' | X`40' | C`cc'] |

EXTended = ECCLEVEL(n), ECWINSIZE(n), ECMEMLEVEL(n)

Note: If the SNODE is B2B Integrator, only COMRESS EXT is supported.