Connect:Direct for OpenVMS Copy Statement

The COPY statement copies files from one node to another.

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 other parameters to customize the file transfer operation.

To copy from one IBM® Connect:Direct® platform to another, refer to the appropriate COPY FROM and TO pages for those platforms. For example, if the source file is located on a Connect:Direct for OpenVMS node, refer to the OpenVMS COPY FROM information. If the destination for the file is a Connect:Direct for z/OS® node, refer to the z/OS TO information.

For information about copying from OpenVMS to a z/OS node, refer to Copying from an OpenVMS Node to a z/OS Node.

The following is the Connect:Direct for OpenVMS COPY statement format. Refer to Sterling Connect:Direct for OpenVMS Process Parameters for more information.

Label Statement Parameters
stepname COPY FROM (
      DSN=filename | FILE=filename
      PNODE | SNODE
      DISP=([OLD | SHR]
      SYSOPTS="[MOUNT='string']
[DISMOUNT | NODISMOUNT]
[TYPE='string']
[LIBRARY='string']
[REPLACE | NOREPLACE]
[BINARY | NOBINARY]
[STREAM | NOSTREAM]
[PROTECTION='string']
[DIROWN | NODIROWN]
[DISSETPROT | NODISSETPROT]
[XLATE='string']"
      SELECT=(name | *)
      DATAEXIT=((exit-name-1 [, C 'p1', C 'p2',..., C 'pn'])
.
.
.
(exit-name-n [, C 'p1', C 'p2',..., C 'pn'])
)
      )
    TO (
      DSN=filename | FILE=filename
      PNODE | SNODE
      TYPE=typekey
      DISP=[RPL | NEW | OLD | SHR | MOD]
      DCB=([DSORG=PS | PO | KSDS | RRDS]
[,KEYLEN=number-of-bytes]
[,LRECL=number-of-bytes]
[,RECFM=V | F | VB | FB]
)
      SYSOPTS="[MOUNT='string']
[DISMOUNT | NODISMOUNT]
[TYPE='string']
[LIBRARY='string']
[REPLACE | NOREPLACE]
[BINARY | NOBINARY]
[PROTECTION='string']
[DIROWN | NODIROWN]
[DISSETPROT | NODISSETPROT]
[XLATE='string']"
      DATAEXIT=((exit-name-1 [, C 'p1', C 'p2',..., C 'pn'])
.
.
.
(exit-name-n [, C 'p1', C 'p2',..., C 'pn'])
)
      )
      COMPRESS [PRIMEchar= X'xx' | X'20' |C'c']
      CKPT=[nK|nM]