COBOL Manual for TNS and TNS/R Programs
Printer and Spooler Output
HP COBOL Manual for TNS and TNS/R Programs—522555-006
30-11
Using PERUSE
For information about these routines, see the Spooler Programmer’s Guide.
Using PERUSE
If you direct a process’s output to a spooler location that is known to the spooler, the
job prints as soon as the device associated with that location becomes available. If the
location you chose is unknown to the spooler, the job sits in READY state until one of
these occurs:
•
An operator (using SPOOLCOM) defines that location to the spooler.
•
You or the operator changes the location attribute of the job to a known location.
•
You or the operator deletes the job from the spooler.
The HP perusal process PERUSE enables you to examine the contents of the job,
change its attributes, or delete it from the spooler. To call PERUSE, run it like any other
process:
103> PERUSE
PERUSE introduces itself with a header. If any jobs in the spooler belong to you,
PERUSE lists them.
In Example 30-3
, job 1171 is ready to be printed. It consists of three pages, one copy is
to be printed, its priority is 4, its HOLDAFTER attribute is not set, its location is
#EXCEP R01, and it belongs to DEVELOP.JAN. Job 2423 does have its HOLDAFTER
attribute set. The underscore (_) is the PERUSE prompt.
Table 30-1. Guardian Environment Routines for Level 3 Spooling
Routine Action
CLOSE Closes the spooler collector
OPEN Opens the spooler collector
SPOOLCONTROL Handles VFU channel skipping
SPOOLCONTROLBUF Handles the loading of programmable VFU for the model 5220
printer
SPOOLEND Signals the end of a spooler job and can change attributes
before a new spooler job starts without closing and reopening
the spooler collector
SPOOLSETMODE Sets automatic perforation skipping, system spacing control,
baud rate, form length, vertical tabs, automatic-answer or
control-answer mode, horizontal pitch, prespacing or post-
spacing, get device status, or reset to configured values
SPOOLSTART Establishes the level-3 buffer, location name, form name, report
name, number of copies, page size, and attributes such as
HOLD and PRIORITY
SPOOLWRITE Writes text to the spooler