Spooler Plus Programmer's Guide
Spooler Procedure Calls
Spooler Plus Programmer’s Guide—522293-003
4-7
PRINTINIT[2] Procedure
PRINTINIT[2] Procedure
The PRINTINIT[2] procedure is used in print processes to initialize communication with 
the spooler supervisor.
The PRINTINIT procedure initializes the print process's print control buffer, which is 
used in calls to other print procedures.
PRINTINIT[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. This file must be opened nowait.
print-control-buffer input, output
is formatted by PRINTINIT[2] and should be passed unaltered to other print 
procedures.
error-code := PRINTINIT[2] ( filenum-of-supervisor ! i
 ,print-control-buffer ); ! i,o
%2000-%2377 File error on data file (bits <8:15> contain a Guardian file-
system error number).
%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.
%4000-%4377 Device error sent to the supervisor by the print process (bits 
<8:15> contain a file-system error number).
%10000 Missing parameter.
%10001 Parameter present, but its content is wrong.
INT:ref:64  (Use with PRINTINIT)
INT:ref:128 (Use with PRINTINIT2)










