Spooler Programmer's Guide
Contents
Spooler Programmer’s Guide—522287-002
iii
3. Using the Spooler Print Procedures, Print
Processes, and Perusal Processes
3. Using the Spooler Print Procedures, Print Processes, and
Perusal Processes
Print and Perusal Processes 3-1
Summary of Print Procedures 3-1
How the Print Process Handles a Job 3-2
External Declarations for Print Procedures 3-3
Writing a Print Process 3-3
Print Process Startup Message 3-4
Retrieving and Printing Spooled Data 3-4
Communicating With the Spooler Supervisor 3-5
Device Errors 3-6
PRINTREAD Errors 3-7
Combining Data Retrieval With Spooler Communication 3-8
Debugging Print Processes 3-8
Writing a Perusal Process 3-9
Outline of the Basic Perusal Process 3-10
4. Spooler Procedure Calls
PRINTCOMPLETE[2] Procedure 4-3
Considerations 4-3
Example 4-4
PRINTINFO Procedure 4-5
Considerations 4-6
PRINTINIT[2] Procedure 4-7
Considerations 4-8
PRINTREAD Procedure
4-9
Considerations
4-10
Example 4-11
PRINTREADCOMMAND Procedure
4-12
Considerations 4-15
Example
4-16
PRINTSTART[2] Procedure
4-17
Considerations 4-18
PRINTSTATUS[2] Procedure
4-19
Considerations
4-21
Example
4-22
SPOOLBATCHNAME Procedure
4-23
Considerations 4-23
SPOOLCONTROL Procedure
4-24