Connect:Direct for z/OS Copy Statement
The Connect:Direct® for z/OS® COPY statement copies the following file types from one IBM® Connect:Direct node to another:
- Sequential Access Method (SAM)
- Virtual Storage Access Method (VSAM)
- Basic Direct Access Method (BDAM)
- Generation Data Group (GDG)
- Partitioned Data Sets (PDS)
- Library (PDSE)
- Linear
- IBM Data Facility Data Set Services (DFDSS) volumes
The Connect:Direct for z/OS COPY statement supports both disk and tape transfers.
The COPY statement contains a FROM parameter that specifies the source file name and a TO parameter that specifies the destination file name. You can specify additional parameters to customize the file transfer.
To copy from one IBM Connect:Direct platform to another, use the COPY FROM and COPY TO statements for the applicable platforms. For example, if the source file is on a Connect:Direct for z/OS node, use the z/OS COPY FROM parameters. If the file destination is a Connect:Direct for HP NonStop node, use the Connect:Direct for HP NonStop COPY TO parameters.
The length of the entire COPY statement cannot exceed 2040 bytes.
The COPY statement supports Multibyte Character Set (MBCS) conversion.
See the following links for information on supported files types:
The following is the Connect:Direct for z/OS COPY statement format. Refer to Connect:Direct for z/OS Process Parameters for more information.
Label | Statement | Parameters | |
---|---|---|---|
stepname | COPY | From | ( |
DSN=data set name/password|FILE=filename | |||
FILE=businessprocess|mailbox | |||
PNODE | SNODE | |||
DCB=([model-file-name] [,BLKSIZE=no.-bytes] [,NCP] [,DEN=0 | 1 | 2 | 3 | 4] [,DSORG= PS | PO | DA | VSAM] [,KEYLEN=no.-bytes] [,LIMCT=no.-blocks-or-tracks] [,LRECL=no.-bytes] [,OPTCD=W | Q | Z ] [,RECFM=record-format] [,RKP=first-byte-position-of-record-key] [,TRTCH=C | E | T | ET | COMP | NOCOMP] ) |
|||
DISP=([OLD | SHR], [KEEP | DELETE], [KEEP | DELETE]) | |||
RESGDG = S | SUB | R | RUN | |||
LABEL=([file-sequence-number], [SL | AL | BLP | LTM | NL], [PASSWORD | NOPWREAD], [IN | OUT], [RETPD=nnnn | EXPDT=[yyddd | yyyy/ddd]] ) | |||
MSVGP=MS-group-name | |||
UNIT=([unit-address | device-type | group-name] ,[unit-count | P]) | |||
VOL=([PRIVATE],[RETAIN] , [volume-sequence-no] , [volume-count] , [SER=(serial-no [,serial-no,...])]) | ([SER=(serial-no ,[serial-no,...])| ,REF=dsn]) | |||
ALIAS=Y | N | |||
EXCLUDE=(generic | member | (start-range/stop-range) | list) | |||
PDS.DIRectory=Y | N | |||
REPLACE | NOREPLACE | |||
SELECT=(member | generic | (*) | (member, [new-name],[NR | R]) | (generic,, [NR | R]) (start-range/stop-range,,[NR | R]) | list) | |||
BUFND=number | |||
IOEXIT=exit-name | (exit-name [,parameter,...]) | |||
DATAEXIT=exit-name | (exit-name [,parameter,...]) | |||
SYSOPTS="DBCS=(tablename,so,si,PAD|PAD=pc, LOGIC=A|B|(B,RC))" “CODEPAGE=(from code set,to Unicode code set)” "parameter1[,parameter2,...]" "DATATYPE=TEXT | BINARY" "XLATE=N | NO | Y |YES" "STRIP.BLANKS=N | NO | Y | YES" "PERMISS=nnn" "PRECOMP=Y | YES | N | NO " SYSOPTS="ZIIP=ON | ZIIP=OFF and ZEDC=ON | ZEDC=OFF" |
|||
) | |||
TO | ( | ||
DSN=data set name/password | FILE=filename | |||
FILE=businessprocess|mailbox | |||
PNODE | SNODE | |||
TYPE=typekey | |||
DCB=([model-file-name] [,BLKSIZE=no.-bytes] [,NCP] [,DEN=0 | 1 | 2 | 3 | 4] [,DSORG=PS | PO | DA | VSAM] [,KEYLEN=no.-bytes] [,LIMCT=no.-blocks-or-tracks] [,LRECL=no.-bytes] [,OPTCD=W | Q | Z ] [,RECFM=record-format] [,RKP=first-byte-position-of-record-key] [,TRTCH=C | E | T | ET | COMP | NOCOMP] ) |
|||
DISP=([NEW | OLD | MOD | RPL | SHR] ,[KEEP | CATLG] ,[KEEP | CATLG | DELETE] ) | |||
AVGREC=U | K | M | |||
DATACLAS=data-class-name | |||
DSNTYPE=PDS | LIBRARY | EXTPREF | EXTREQ | BASIC | LARGE | |||
KEYLEN=bytes | |||
KEYOFF=offset-to-key | |||
LIKE=model-data-set-name | |||
LRECL=bytes | |||
MGMTCLAS=management-class-name | |||
RECORG=KS | ES | RR | LS | |||
SECMODEL=(profile-name [,GENERIC]) | |||
STORCLAS=storage-class-name | |||
LABEL=([file-sequence-number], [SL | AL | BLP | LTM | NL], [PASSWORD | NOPWREAD], [IN | OUT] , [RETPD=nnnn | XPDT=[yyddd | yyyy/ddd]] ) | |||
MSVGP=MS-group-name | |||
SPACE=(CYL | TRK | blk, (prim , [sec] , [dir]), [RLSE] , [CONTIG] , [ROUND]) | (av-rec-len , (primary-rcds , [secondary-rcds] , [dir]) ) | |||
UNIT=([unit-address | device-type | group-name] , [unit-count | P ] ) | |||
VOL=([PRIVATE],[RETAIN] , [volume-sequence-no] ,[volume-count] , [SER=(serial-no [,serial-no,...])]) | ([SER=(serial-no ,[serial-no,...])|,REF=dsn]) | |||
BUFND=number | |||
IOEXIT=exit-name | (exit-name [,parameter,...]) | |||
DATAEXIT=exit-name | (exit-name [,parameter,...]) | |||
SYSOUT=(sysout_parameter1, sysout_parameter2,. . .) | |||
SYSOPTS="UNIQUE=YES" "DBCS=(tablename,so,si,PAD|PAD=pc), LOGIC=A | B|(B,RC))" “CODEPAGE=(from Unicode code set,to code set)” "DATATYPE=TEXT | BINARY" "XLATE=N | NO | Y | YES" "STRIP.BLANKS=N | NO | Y ||YES" "PERMISS=nnn" "SYSOUT=(sysout_keyword1, sysout_keyword2, . .)" SYSOPTS="ZIIP=ON | ZIIP=OFF and ZEDC=ON | ZEDC=OFF" ) |
|||
CKPT=nK | nM ZFBA=2 |
|||
COMPRESS [[PRIMEchar=X'40' | X'xx' | C'c'] |
EXTended | EXTended=(TYPE=(ZEDC | NOZEDC , ZIIP | NOZIIP) Note: If
the SNODE is B2B Integrator,
only COMRESS EXT is supported.
|