Spooler Plus Programmer's Guide
Spooler Procedure Calls
Spooler Plus Programmer’s Guide—522293-003
4-44
SPOOLERSTATUS2 Procedure
SPOOLERSTATUS2 Procedure
The SPOOLERSTATUS2 procedure performs Spoolcom and Peruse operations from
within applications. (SPOOLERSTATUS, an older version of this procedure that is
documented in the Spooler Programmer’s Guide, is considered obsolete with Spooler
Plus.)
SPOOLERSTATUS2 allows a process to obtain the status of spooler components.
error-code returned value
INT
returns one of the following spooler error codes:
supervisor-filenum input
INT:value
is the file number of an open supervisor file. The file number is returned when the
supervisor is opened.
command-code input
INT:value
error-code := SPOOLERSTATUS2 ( supervisor-filenum ! i
,command-code ! i
,scan-type ! i
,status-buffer ); ! i,o
0 Successful operation
%3000-
%3377
Error on file to supervisor (file-system error in bits <8:15>; refer
to Appendix C, Spooler-Related Errors, or to the Guardian
Procedure Errors and Messages Manual).
%10000 Parameter missing
%10001 Parameter in error
%14001 Command parameter missing
%14002 Command parameter in error
%14006 End of SPOOLERSTATUS2 entries
%14007 Entry not found by SPOOLERSTATUS2
%14015 Process not a spooler supervisor
%14016 SPOOLERSTATUS2 request in progress