Spooler Programmer's Guide
Spooler Procedure Calls
Spooler Programmer’s Guide—522287-002
4-56
Obtaining the Spooler Statistics and Status
Obtaining the Status of Occurrences of a Job (Command 
Code 8)
To obtain the status of an occurrence of a particular job, set the command-code 
parameter of SPOOLERSTATUS2 to 8 and the scan-type parameter to 1.
Put the job number of the job whose occurrence you want to examine in the number 
field of the STRUCT. Fill the device^name, location.group, and 
location.destination fields with blanks and set sequence^number to zero. 
Each call to SPOOLERSTATUS2 returns a different occurrence of the job. Do not 
change the number and device^name fields between calls. When 
SPOOLERSTATUS2 returns %14006 as the error code, the status of all occurrences of 
the job has been returned.
Obtaining the Status of Jobs at a Location (Command Code 
9)
To obtain the status of a job at a specified location, set the command-code parameter 
of SPOOLERSTATUS2 to 9 and the scan-type parameter to 1.
Set the location.group and location.destination fields of the STRUCT to 
the location that you want to examine (blank-fill both fields on the right), and set the 
sequence^number field to 0. Each call to SPOOLERSTATUS2 returns the status of a 
different job at the specified location. Do not change the sequence^number, 
device^name, location.group, or location.destination fields between calls. 
When SPOOLERSTATUS2 returns %14006 as the error code, the status of all jobs at 
the specified location has been returned.
Figure 4-1. Spooler Ready List
008CDT .CDD
1
2
3
4
5
Job 234
Job 2874
Job 32
Job 645
Job 627
$LPA
1
2
3
4
Job 3455
Job 1111
Job 234
Job 2233
$LPB
1
2
3
Job 1656
Job 4243
Job 234
$LPC










