Open System Services Programmer's Guide

Example 53 (page 229) shows how to send an OSS file to the spooler and how to control the
spooler from an OSS program using Guardian spooler procedures. The printer is opened using
FILE_OPEN_, then SPOOLSTART is called to establish a level-3 spooling session using a level-3
buffer to compress and block data. The SPOOLCONTROL procedure is used to send control codes
to the level-3 buffer, and the SPOOLWRITE procedure is used to compress and block data in the
level-3 buffer. When the level-3 buffer is full, the buffer is written to the collector. The SPOOLEND
procedure is used to write any remaining data from the level-3 buffer and complete the job being
spooled at level 3. The printer name is specified in Guardian filename format (for example,
$s.#default), because printer names are inaccessible using the OSS pathname format.
For information about the SPOOLCONTROL, SPOOLEND, SPOOLSTART, and SPOOLWRITE
procedures, as well as other spooler procedures, refer to the Spooler Programmer’s Guide.
228 Managing I/O