Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Parameters

Description

Qualifiers

Examples

/LOG

/RECORD_FORMAT

/REWIND

/VOLUME_FORMAT

EXCHANGE TYPE — VMS 5.1-B

 The EXCHANGE TYPE command displays the contents of a file or group  of
 files on the current output device.

 Format
         EXCHANGE>  TYPE   file-spec[,...]
 Prompts
         File:  file-spec[,...]

Additional information available:

ParametersDescriptionQualifiersExamples

Parameters

 file-spec[,...]

      Specifies the names of one or more input files to be copied.   If
      you  specify more than one input file, you can separate them with
      either commas (,) or plus signs (+).  Standard VAX/VMS wild cards
      can  be specified in file names, both Files-11 and foreign.  Wild
      card directories are supported for Files-11 and DOS-11 input.

      The syntax for the file names  is  dependent  on  the  particular
      volume  format  option  present  or implied.  See Section 6.0 for
      descriptions of the volume format options.

Description

      The EXCHANGE TYPE command transfers a  file  or  files  from  the
      input volume to the current output device, SYS$OUTPUT.

Qualifiers

Additional information available:

/LOG/RECORD_FORMAT/REWIND/VOLUME_FORMAT

/LOG

 /LOG
 /NOLOG

      Controls whether EXCHANGE TYPE displays the  file  specifications
      of each file printed.

      If you specify /LOG, the EXCHANGE TYPE command displays, for each
      copy  operation,  the file specifications of the input and output
      files and the number of blocks or  the number  of records  copied
      (depending  on  whether the file is copied on a block-by-block or
      record-by-record basis).

/RECORD_FORMAT

 /RECORD_FORMAT=(option[,...])

      The  /RECORD_FORMAT  qualifier  defines   the   internal   record
      structure of a file and other attributes of the records.

              Option                    Function

           BINARY         Identifies formatted binary mode transfers
           FIXED          Identifies fixed-length record format
           PHYSICAL       Identifies physical mode transfers
           STREAM         Identifies ASCII stream mode transfers
           LENGTH         Sets fixed-length record type and  determines
                          record size
           PAD            Sets the character to pad  short  records  on
                          fixed-length output

      See section 7.0 for a complete description of the  /RECORD_FORMAT
      qualifier and the defaults.

/REWIND

 /REWIND
 /NOREWIND

      Causes the input tape reel to be rewound (/REWIND) or not rewound
      (/NOREWIND) to beginning-of-tape before EXCHANGE searches for the
      file name specified in the input specifier.

      Use this  qualifier  only  for  magnetic  tapes.   The  /NOREWIND
      qualifier  is  the  default;   use  /REWIND when you want TYPE to
      start searching for a file at the beginning of  the  tape  rather
      than starting at the current position.

/VOLUME_FORMAT

 /VOLUME_FORMAT=option

      The /VOLUME_FORMAT qualifier defines the physical format  of  the
      volume   to  be  processed.   The  default  format  qualifier  is
      dependent on the device type.  The default is /VOLUME_FORMAT=RT11
      for    block-addressable    devices    mounted    foreign,    and
      /VOLUME_FORMAT=DOS11 for magnetic tape devices  mounted  foreign.
      The default for devices mounted native is /VOLUME_FORMAT=FILES11,
      the VAX/VMS native volume format.

           Option                       Function

           FILES11        Identifies a Files-11 formatted native volume
           RT11           Identifies   an   RT-11   formatted    block-
                          addressable volume
           DOS11          Identifies a DOS-11 formatted  magnetic  tape
                          volume

      A volume format qualifier determines the format of the file  name
      and  directory  specifications,  and  will  often  imply  certain
      defaults.  See section 6.0 for  a  complete  description  of  the
      /VOLUME_FORMAT qualifier and the defaults.

Examples

      1.  EXCHANGE> TYPE  TEST.DAT

          The TYPE command displays the contents of the  file  TEST.DAT
          from the default disk and directory.

      2.  EXCHANGE> TYPE  DYA0:BEAM.RAT/VOLUME=RT11/RECORD=STREAM

          This command copies the RT-11 file to the SYS$OUTPUT  device.
          The  two qualifiers are actually the defaults, assuming DYA0:

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026