Spooler Plus Programmer's Guide

Spooler Procedure Calls
Spooler Plus Programmers Guide522293-003
4-12
PRINTREADCOMMAND Procedure
PRINTREADCOMMAND Procedure
The PRINTREADCOMMAND procedure can be used in print and perusal processes
to access spooled data and to allow print processes to communicate with the spooler
supervisor.
The PRINTREADCOMMAND procedure interprets the information contained in the
print control buffer returned from a call to PRINTCOMPLETE (in a print process) or
SPOOLEREQUEST[2] (in a perusal process).
error-code returned value
INT
returns one of the following spooler error codes:
print-control-buffer input
INT:ref:64
is passed exactly as it is returned from PRINTCOMPLETE[2] or
SPOOLEREQUEST[2].
controlnum output
INT:value
error-code := PRINTREADCOMMAND ( print-control-buffer ! i
,[ controlnum ] ! o
,[ device ] ! o
,[ devflags ] ! o
,[ devparam ] ! o
,[ devwidth ] ! o
,[ skipnum ] ! o
,[ data-file ] ! o
,[ jobnum ] ! o
,[ location ] ! o
,[ form-name ] ! o
,[ report-name ] ! o
,[ pagesize ] ! o
,[ batchname ] ! o
,[ batchid ] ! o
,[ owner ] ! o
,[ charmap ] ! o
,[ devflagx ] ); ! o
%1000
0
Missing parameter.
%1000
1
Parameter is present, but its content is wrong.