SPOOL |
![]() ![]() ![]() |
The SPOOL command sends specified records to the printer.
Format
SPOOL file record(s) { LINES m n } { LNUM }{ LPTR n }
where
The SPOOL command sends the specified records to print unit 0. The actual destination is determined by use of either PRINTER or SETPTR.
Use of the LNUM keyword prefixes each line by its line number, a colon and a single space. The line number is printed as a minimum of four digits but expands if the record has more than 9999 lines.
Example
SPOOL INVOICES 01249 01250
The above command would print records 01249 and 01250 from the INVOICES file. The SPOOL command does no formatting of the data except to replace field marks by newlines. |