Connect:Direct for i5/OS Copy Members 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 a physical database file member to and from a Connect:Direct for i5/OS node.
The following is the Connect:Direct for i5/OS Members statement format. Refer to Connect:Direct for i5/OS Process Parameters for more information.
Label | Statement | Parameters | |
---|---|---|---|
stepname | COPY | FROM | ( |
DSN=`library-name/file-name' | `library-name/file-name(member-name)' | `/QSYS.LIB/library-name.LIB'/ file-name.FILE/member-name.MBR' | | |||
SYSOPTS="TYPE(MBR) PRECMPR (*YES | *NO) EXITCMD(valid i5/OS command) FAILCMD(valid i5/OS command) SNDFFD(*YES|*NO) TEXTFILE(*YES|*NO) CODEPAGE(from code set, to Unicode set) XTRAN (table-name) [XTRANLSO (so-code) | XTRANLSI (si-code) | XTRANLDATA (MIXED | DBCS)]" |
|||
DISP=([SHR | OLD] ,[KEEP | DELETE] ,[KEEP | DELETE]) | |||
) | |||
TO | ( | ||
DSN=`library-name/file-name' | `library-name/file-name(member-name)' | `/QSYS.LIB/library-name.LIB/ file-name.FILE/member-name.MBR' | |
|||
SNODE | |||
SYSOPTS="TYPE(MBR) DECMPR (*YES | *NO) EXITCMD(valid i5/OS command) FAILCMD(valid i5/OS command) TEXTFILE(*YES | *NO) CODEPAGE(from Unicode set, to code set) RCDLEN(record-length) FILETYPE(*SRC | *DATA) TEXT(`text-description') EXPDATE(expiration-date) MAXMBRS(number | *NOMAX) SIZE(#-of-recs | incr-value#-of-incrs|*NOMAX) AUT(*CHANGE | *ALL | *USE | *EXCLUDE) IGCDTA(*YES | *NO)" |
|||
DISP=([NEW | OLD | MOD | RPL | SHR]) | |||
UNIT=(unit-identifier) | |||
) | |||
CKPTINV=[nnnnnnn | nnnnnnK | nnnnnnM] | |||
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.
|