Connect:Direct for i5/OS Copy Objects 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.

The COPY statement consists of a COPY FROM clause that specifies the source object name and a COPY TO clause that specifies the destination object name. You can specify additional parameters to customize the file transfer operation.

Use this format to copy one or more objects to and from a Connect:Direct for i5/OS node. The object must be in save file format on the i5/OS prior to copying. You can view the save file information by displaying the save files on the i5/OS.

The following is the Connect:Direct for i5/OS Copy Objects 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.