Spooler Programmer's Guide

Spooler Procedure Calls
Spooler Programmer’s Guide522287-002
4-26
SPOOLCONTROLBUF Procedure
SPOOLCONTROLBUF Procedure
The SPOOLCONTROLBUF procedure is used to perform device-dependent I/O
operations requiring a data buffer when the application process is spooling at level 3.
This procedure must be used in place of CONTROLBUF if a level-3 buffer is specified
in a call to SPOOLSTART.
error-code returned value
INT
returns one of the following spooler error codes:
level-3-buff input, output
INT:ref:512
is the level-3-buff specified in the SPOOLSTART procedure.
operation input
INT:value
is a SPOOLCONTROLBUF operation as follows:
buffer input
INT:ref:*
error-code := SPOOLCONTROLBUF ( level-3-buff ! i,o
,operation ! i
,buffer ! i
,count ! i
,[bytes-written-to-buff] ! o
,[extended-level-3-buff] ); ! i,o
0 Successful operation
%1000-%1377 Error on file to collector (bits <8:15> contain a file-system error
number; see Considerations on page 4-27)
%10000 Missing parameter
%10001 Parameter is present, but its content is wrong
%11000 Checkpoint exit
%11001 Attempted to write to the collector without first opening the file
operation Definition
1 Load DAVFU (printer subtype 4)
buffer = VFU buffer to be loaded
count = number of bytes contained in buffer