Spooler Plus Programmer's Guide
Spooler Procedure Calls
Spooler Plus Programmer’s Guide—522293-003
4-70
SPOOLWRITE Procedure
SPOOLWRITE Procedure
The SPOOLWRITE procedure is used to write to a collector when the application
process is spooling at level 3.
The SPOOLWRITE procedure compresses and blocks data into the level-3 buffer and,
when the buffer is full, writes the buffer to the collector or a spooler job file. This
procedure must be used in place of the WRITE[X] procedure 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 call to SPOOLSTART.
print-line input
INT:ref:*
is an array containing the line of data to be sent to the collector. The size of
print-line must not exceed 900 bytes.
write-count input
INT:value
is the number of bytes of print-line to be written; it must not exceed 900
bytes.
error-code := SPOOLWRITE ( level-3-buff ! i,o
,print-line ! i
,write-count ! i
,[ bytes-written-to-buff ] ) ! o
,[ extended-level-3-buff ] ! i,o
0 Successful operation
%1000-
%1377
Error on file to collector (<8:15> contains a file-system error
number; see Considerations on page 4-71)
%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