Spooler Plus Programmer's Guide

Spooler Procedure Calls
Spooler Plus Programmers Guide522293-003
4-56
Obtaining the Spooler Statistics and Status
Obtaining the Status of Occurrences of a Job (Command
Code 21)
To obtain the status of an occurrence of a particular job, set the command-code
parameter of SPOOLERSTATUS2 to 21 and bit 15 of 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
22)
To obtain the status of a job at a specified location, set the command-code parameter
of SPOOLERSTATUS2 to 22 and bit 15 of 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
VST008.vsd
$LPA $LPB $LPC
1
1 1
2 2 2
3
3 3
4 4
5
Job 234 Job 3455
Job 2874
Job 32 Job 234Job 234
Job 4243
Job 645
Job 1111
Job 1656
Job 2233
Job 627