Spooler Plus Programmer's Guide

Spooler Procedure Calls
Spooler Plus Programmers Guide522293-003
4-19
PRINTSTATUS[2] Procedure
PRINTSTATUS[2] Procedure
The PRINTSTATUS procedure can be used in print processes to communicate with the
supervisor and to send an unsolicited status message to the spooler supervisor.
PRINTSTATUS[2] is the same procedure with a larger buffer.
error-code returned value
INT
returns one of the following spooler error codes:
filenum-of-supervisor input
INT:value
is the file number of an open supervisor file. The file number is returned when the
supervisor is opened.
print-control-buffer input
is the buffer obtained from the PRINTCOMPLETE[2] procedure.
error-code := PRINTSTATUS[2] ( filenum-of-supervisor ! i
,print-control-buffer ! i
,msg-type ! i
,device ! i
,[ error ] ! i
,[ num-copies ] ! i
,[ page ] ! i
,[ line ] ! i
,[ lines-printed ] ); ! i
%2000-%2377 File error on data file (bits <8:15> contain a file-system error
number).
%3000-%3377 Supervisor file error (bits <8:15> contain a file-system error
number). This error indicates a communication problem with
the supervisor. A print process receiving this error can call
ABEND, retry the operation a number of times, or continue
reading and printing jobs without any further communication
with the supervisor.
%4000-%4377 Device error sent to the supervisor by the print process (bits
<8:15> contain a file-system error number).
INT:ref:64 (Use with PRINTSTATUS)
INT:ref:128 (Use with PRINTSTATUS2)