Contents - Index


 

Use FilePrint to print the text of a file.

 

FilePrint may also be entered as PrintFile or Print.

 

FilePrint is supported for BIM and workstation files.  It is not supported for PDS or VSE files.

 

Optional Operands

 

FILE is the BIM or workstation file to print.  (If FILE is specified as "/", the SessionPrint command is invoked.)

 

 Default: last referenced file.

 

HEAD [Relevant for workstation files only.] specifies whether heading information, such as the file name, is to print at the top of each page.  Specify "ON" or "YES" if heading information is to be printed.  Specify "OFF" or "NO" otherwise.

 

 Default: ON.

 

 

 

LEFTMARG Specifies the number of columns to reserve for the left margin.Default: 6.

 

workstation files are written to the workstation spooler.  Host files are written to the host operating system spooler.  A Host file can be written to the workstation spooler by listing the file (FileList) and then issuing the SessionPrint command.

 

Under OS/2, when writing to the workstation spooler, FilePrint writes to a file called "PRN".  "PRN" is normally directed to the first parallel port of name "LPT1".  If "PRN" is to be directed to the second parallel port, you may want to include the following command in the BIM-EDIT/XP startup command file:

 

   SPOOL /D:PRN /O:LPT2

 

FilePrint sets the last referenced file.

 

Return Codes

 

OK Successful.

NF File not found.

SC Inadequate access level.

 

Procedure Notes

 

FilePrint sets the TXM variables to the attributes of FILE.

 

Examples

 

Print the workstation file ReadMe.Doc:

 

   => print readme.doc

 

Print the BIM file XIL0250:

 

   => print xil0250