Spooler Programmer's Guide

Spooler Procedure Calls
Spooler Programmer’s Guide522287-002
4-44
SPOOLERSTATUS2 Procedure
SPOOLERSTATUS2 Procedure
The SPOOLERSTATUS2 procedure performs Spoolcom and Peruse operations from
within applications. SPOOLERSTATUS allows a process to obtain the status of spooler
components.
SPOOLERSTATUS2 differs from SPOOLERSTATUS in that command-code 13 has
been added to support font information, command-code 14 has been added to support
batch processing, and the size of the status-buffer has been doubled.
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