VMS Help  —  EXCHANGE  /NETWORK  Examples
    1.$ EXCHANGE/NETWORK VMS_FILE.DAT KUDOS::FOREIGN_SYS.DAT

      In this example, the EXCHANGE/NETWORK command transfers the
      file VMS_FILE.DAT located in the current default device and
      directory to the file FOREIGN_SYS.DAT on the non OpenVMS node
      KUDOS. Because the /TRANSFER_MODE qualifier was not explicitly
      specified, the EXCHANGE/NETWORK command automatically
      determines whether the transfer method should be block or
      record I/O.

    2.$ EXCHANGE/NETWORK/TRANSFER_MODE=BLOCK -
      _$ KUDOS::FOREIGN_SYS.DAT VMS_FILE.DAT

      In this example, the EXCHANGE/NETWORK command transfers the
      file FOREIGN_SYS.DAT from the non OpenVMS node KUDOS to the
      file VMS_FILE.DAT in the current default device and directory.
      Block I/O is specified for the transfer mode.

    3.$ EXCHANGE/NETWORK/FDL=VMS_FILE_DEFINITION.FDL -
      _$ KUDOS::REMOTE_FILE.TXT  VMS_FILE.DAT

      In this example, the EXCHANGE/NETWORK command transfers the
      file REMOTE_FILE.TXT on node KUDOS to the file VMS_FILE.DAT.
      The file attributes for the output file VMS_FILE.DAT are
      obtained from the File Definition Language (FDL) source
      file VMS_FILE_DEFINITION.FDL. Because the qualifier /FDL is
      specified and the /TRANSFER_MODE qualifier is omitted, the
      transfer mode uses block I/O, by default.

      For more information about creating FDL files, see the OpenVMS
      Record Management Utilities Reference Manual.

    4.$ EXCHANGE/NETWORK -
      _$ /TRANSFER_MODE=CONVERT=(CARRIAGE_CONTROL,COUNTED, -
      _$ RECORD_SEPARATOR=CRLF,FIXED_CONTROL) -
      _$ PRINT_FILE.TXT  KUDOS::*

      In this example, the EXCHANGE/NETWORK command transfers the
      file PRINT_FILE.TXT from the current default device and
      directory to the file PRINT_FILE.TXT on the non OpenVMS node
      KUDOS. The use of the CONVERT option with the /TRANSFER_MODE
      qualifier forces the input file to be read in record by record,
      modified as specified by the CONVERT options that follow, and
      written to the output file block by block. As many records as
      will fit are packed into the output blocks.

      The CONVERT option CARRIAGE_CONTROL specifies that carriage
      control information is converted to ASCII characters and
      inserted before the data or appended to the record, depending
      on whether prefix control or postfix control, or both, are
      used.

      The CONVERT option FIXED_CONTROL specifies that any fixed
      control information be translated to ASCII characters and
      inserted at the beginning of the record.

      The CONVERT option RECORD_SEPARATOR=CRLF appends the two
      specified characters, carriage return and line feed, to the
      end of the record.

      The CONVERT option COUNTED specifies that the total length
      of the record must be counted (once the impact of all the
      previous convert options have been added), and the result is
      to be inserted at the beginning of the record, in the first 2
      bytes.
Close Help