Spooler Programmer's Guide
Spooler Procedure Calls
Spooler Programmer’s Guide—522287-002
4-3
PRINTCOMPLETE[2] Procedure
PRINTCOMPLETE[2] Procedure
The PRINTCOMPLETE[2] procedure is used by a print process to communicate with
the spooler supervisor.
The PRINTCOMPLETE procedure obtains a message from the supervisor.
PRINTCOMPLETE[2] is the same procedure with a larger buffer.
error-code returned value
INT
returns 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 output
on return, contains a message from the supervisor.
Considerations
The following considerations apply to the use of the PRINTCOMPLETE[2] procedure:
PRINTCOMPLETE[2] should not be used by a perusal process. The print process
operates with, and under the control of, the supervisor, while a perusal process
operates on its own.
The message returned by PRINTCOMPLETE[2] is interpreted through a call to
PRINTREADCOMMAND.
error-code := PRINTCOMPLETE[2] ( filenum-of-supervisor ! i
,print-control-buffer ); ! o
%3000-%3377 Supervisor file error (<8:15> contains a file error). 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.
%14015 The process is not a spooler supervisor.
INT:ref:64 (Use with PRINTCOMPLETE)
INT:ref:128 (Use with PRINTCOMPLETE[2])