COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Table 125 Guardian Environment Routines for Level 3 Spooling (continued)
ActionRoutine
horizontal pitch, prespacing or post-spacing, get device status, or reset to
configured values
Establishes the level-3 buffer, location name, form name, report name,
number of copies, page size, and attributes such as HOLD and PRIORITY
SPOOLSTART
Writes text to the spoolerSPOOLWRITE
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 298, 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.
Example 298 PERUSE Output
PERUSE - T9101D20 - (8JUN92) SYSTEM \LEO
JOB STATE PAGES COPIES PRI HOLD LOCATION REPORT
1171 READY 3 1 4 #EXCEP R01 DEVELOP JAN
2423 READY 4 1 4 A #MURPHY DEVELOP JAN
_
For more information about PERUSE, see the Spooler Programmer’s Guide.
Current Job
The current job is the job to which the spooler is currently devoting its attention. Almost all commands
that you give to PERUSE apply only to the current job. You cannot tell the spooler to list job number
2423; you must establish job 2423 as the current job and then tell the spooler to list the current
job.
906 Printer and Spooler Output