COBOL Manual for TNS and TNS/R Programs
Printer and Spooler Output
HP COBOL Manual for TNS and TNS/R Programs—522555-006
30-13
Using PERUSE
Common PERUSE Operations
After you have established a current job, you can perform the operations such as those
listed in Table 30-2 (all operations apply to the current job unless otherwise specified).
Table 30-2 is not a complete list of PERUSE commands; for more information, see the
Guardian User’s Guide.
Here are some examples of spooler commands that involve the current job and the
current position. Suppose you have just started the spooler. The spooler always begins
by listing all jobs in its queues that belong to you. Suppose that the list is:
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
_
To establish job 1171 as the current job, you enter:
_JOB 1171
Table 30-2. PERUSE Operations and Commands (Partial List)
Operation Command
Set number of copies COPIES
Set form name FORM
Set location LOC
Set report name REPORT
Set priority PRI
Put the job into the HOLD state HOLD or
HOLD ON
Remove the job from HOLD state HOLD OFF
Set the HOLDAFTER attribute HOLDAFTER or
HOLDAFTER ON
Clear the HOLDAFTER attribute HOLDAFTER OFF
List some or all of the current job at your screen or on a device or to
another job
LIST
List last page of the job (this is often a summary, showing any errors) LIST L
Set the current position as the first line of a chosen page in the job PAGE
Display the page number and line number of the current position PAGE
Find the next instance of a certain character-string in the job FIND
Delete the job DELETE
Give the job to a new owner OWNER
Get information about PERUSE commands HELP