HP 3000 Manuals

Printing Files [ FCOPY Reference Manual ] MPE/iX 5.0 Documentation


FCOPY Reference Manual

Printing Files 

You can print a file by copying it to a printer.  For example, suppose
you ran a program or utility that normally displays messages on your
terminal, but you redirected the program's output to a disk file to save
it for later study.  To print such a file, use FCOPY to copy it to a
printer.

Printing an ASCII File: 

To print an ASCII file, follow these steps:

   1.  Use the MPE FILE command to define a file name for your printer.
       For example,

            >:FILE LIST;DEV=LP2 

   2.  Use the printer's file name, LIST, as the tofile name.  Precede
       the file name with an asterisk to backreference the FILE command.
       For example,

            >FROM=TEXT1;TO=*LIST 

Printing a Binary File: 

To print a binary file, follow these steps:

   1.  Use the MPE FILE command to define a file name for your printer.
       For example,

            >:FILE LIST;DEV=LP2 

   2.  Use the HEX or OCTAL function to display the hexadecimal or octal
       representation of the binary content.

   3.  Use the CHAR function to print any ASCII characters that may
       exist.

   4.  Use the NORECNUM function if you wish to suppress line numbers
       from printing.  For example,

            >FROM=FILE1;TO=*LIST;OCTAL;CHAR;NORECNUM 



MPE/iX 5.0 Documentation