Spooler Plus Programmer's Guide

Spooler Procedure Calls
Spooler Plus Programmers Guide522293-003
4-28
SPOOLEND Procedure
SPOOLEND Procedure
The SPOOLEND procedure can be used to complete a job being spooled at level 3.
The SPOOLEND procedure writes any remaining data in the collection process buffer
to the collector, sends the collection process a termination message, and optionally
modifies the job’s attributes.
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.
flags input
INT:value
overrides the flags specified in SPOOLSTART. If bit <8> is set to 1, the job is
canceled rather than printed.
error-code := SPOOLEND ( level-3-buff ! i,o
,[ flags ] ); ! i
,[ 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-29)
%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
<0:7> Reserved for use by the collector
<8> Cancel job flag: 0 = off
1 = on
<9> HOLD flag: 0 = off
1 = on