1 UUENCODE-DECODE
  The  UUENCODE  command  encodes a file into a form which contains only
  normal ASCII printable characters. This file may then  be  transmitted
  to  another  machine,  and  decoded  to produce a copy of the original
  file.

  The UUDECODE command  decodes  a  file  previously  encoded  with  the
  UUENCODE command.

  The  encoded  format is compatible with that used by the UNIX commands
  `uuencode' and `uudecode'.

  These commands make it possible to transmit files  over  communication
  links  such  as  mail  and  file transfer systems, even when the files
  contain characters which have special meanings  on  the  communication
  link. They  are  also useful for circumventing certain problems in the
  file transfer system on VMS (e.g. inability to handle long records).
2 UUENCODE
  This command encodes a VMS file. The header line in  the  output  file
  always specifies a UNIX file mode of 600 (rw-------).

  Format:

    UUENCODE input-file-spec
3 Parameters

 input-file-spec

  Specifies the name of the file to be encoded. Only  one  file  may  be
  specified. No wildcards are allowed.

3 Command_Qualifiers

/FORMAT

 /FORMAT=input-format

  Specifies  the  format  of  the  input  file,  and  may  be one of the
  following.  The default format is TEXT.

       BINARY       - the  input  file  is  assumed  to  contain  binary
                      data. The contents of the file are encoded with no
                      additions or modifications.

       EMAS_BINARY  - the  input  file  is  a  binary  file   originally
                      resident  on  EMAS. The  contents  of the file are
                      encoded with the assumption  that  the  EMAS  file
                      header  is  not  to be included, and that no other
                      changes are made. This option is useful  for  UNIX
                      binary   files   (e.g. `tar'   images)  originally
                      archived on EMAS.

       TEXT         - the input file is a normal  text  file. A  newline
                      character  is  added at the end of each record, to
                      convert the file contents to a UNIX-style format.

/LOG

 /LOG
 /NOLOG (default)

  Controls whether a message is displayed when  the  encoding  has  been
  completed.

/OUTPUT

 /OUTPUT=output-file-spec

  Controls  where  the  encoded output is sent.  If you do not enter the
  qualifier, the output is sent to the current  process  default  output
  stream or device, identified by the logical name SYS$OUTPUT.

/REMOTE_FILE

 /REMOTE_FILE=remote-file-spec

  Specifies  the  name  of the file into which the encoded file is to be
  decoded, when this is eventually done on the remote  system. This  can
  of course be altered at any time simply by editing the encoded file.

  If  this  qualifier  is  not  specified, the name of the input file is
  used.

  To conform to UNIX  conventions,  the  remote  file  specification  is
  generated in lower case.

/VERSION

 /VERSION

  Causes the version number of UUENCODE to be displayed.

3 Examples

  1.   $ UUENCODE FRED.TXT/OUTPUT=FRED.UUE

  This command encodes the text file FRED.TXT into the file FRED.UUE.

  2.   $ UUENCODE TEST.EXE/FORMAT=BINARY/OUTPUT=TEST.UUE

  This command encodes the binary file TEST.EXE into the file TEST.UUE.

2 UUDECODE
  This  command  decodes  a  file into a VMS file. Output is to the file
  specified when the file was encoded; this name may  be  found  in  the
  header line of the input file, and may be edited if a different output
  file is required.

  The  UNIX  mode  digits  in  the  header  line  are honoured, with the
  addition of Delete permission for the file owner and  RWED  permission
  for the system.

  Format:

    UUDECODE input-file-spec
3 Parameters

 input-file-spec

  Specifies the name of the file to be decoded. Only  one  file  may  be
  specified. No wildcards are allowed.

3 Command_Qualifiers

/FORMAT

 /FORMAT=output-format

  Specifies  the  format  of  the  output  file, and  may  be one of the
  following.  The default format is TEXT.

       BINARY       - the  input  file  is  assumed  to  contain  binary
                      data. The contents of the file are decoded with no
                      additions or modifications, and the output file is
                      created with fixed length records  of  512  bytes.
                      Any  spare bytes in the last block are filled with
                      zeros (the ASCII NUL character).

       TEXT         - the input file is assumed to contain normal  text.
                      Each  occurrence  of  a newline character causes a
                      new record to be started in the output  file,  and
                      the  output  file  is created with variable length
                      records.

/LOG

 /LOG
 /NOLOG (default)

  Controls whether a message is displayed when  the  decoding  has  been
  completed.

/VERSION

 /VERSION

  Causes the version number of UUDECODE to be displayed.

3 Examples

  1.   $ UUDECODE FRED.UUE/LOG

  This  command  decodes  the  file  FRED.UUE,  and  outputs an advisory
  message.  The output file is a text file (variable length records).

  2.   $ UUDECODE TEST.UUE/FORMAT=BINARY

  This command decodes the file  TEST.UUE  into  a  binary  file  (fixed
  length records of 512 bytes).
