Spooler Programmer's Guide

Spooler Procedure Calls
Spooler Programmer’s Guide522287-002
4-5
PRINTINFO Procedure
PRINTINFO Procedure
The PRINTINFO procedure is used in print processes to communicate with the spooler
supervisor.
The PRINTINFO procedure returns information regarding a job to the supervisor in
response to a “send status” request. This includes spooler job files.
error-code returned value
INT
returns the following spooler error code:
job-buffer input
INT:ref:560
contains control information for the job started. PRINTINFO interprets the contents
of job-buffer.
copies-remaining output
INT:ref:1
returns the number of copies of the job that are left to print, including the current
copy.
current-page output
INT:ref:1
returns the page number of the current page.
current-line output
INT:ref:1
returns the current line of the current page being printed.
lines-printed output
INT:ref:1
returns the total number of lines printed for this copy of the job.
error-code := PRINTINFO ( job-buffer ! i
,[ copies-remaining ] ! o
,[ current-page ] ! o
,[ current-line ] ! o
,[ lines-printed ] ); ! o
%1000
1
Parameter present, but its content is
wrong.