Spooler Plus Programmer's Guide

Using the Spooler Print Procedures, Print Processes, and
Perusal Processes
Spooler Plus Programmers Guide522293-003
3-11
Outline of the Basic Perusal Process
5. The job can now be accessed with a succession of calls to PRINTREAD:
err := PRINTREAD( job^buf, data^line, read^count );
IF err THEN ... ! PRINTREAD error
ELSE ... ! data^line contains the
! next line of spooled data
At this point, the perusal process performs an operation with data^line, such as writing
it to a terminal. The next call to PRINTREAD returns the next line of the job, and so
on, until end of file.
Note. Some PRINTREAD messages occur normally, such as end of file, end of copy, CONTROL, and
SETMODE.