Spooler Utilities Reference Manual
Introduction to the Spooler Subsystem
Spooler Utilities Reference Manual—522295-003
2-11
Job State
You create a job when your application opens a collector process and writes to it; for
example:
TFORM / IN filename, OUT $S.device /
A job in the OPEN state is being added to the spooler. For example, if you send the
output from a TFORM process to the spooler, the job is in the OPEN state until the
TFORM output is complete.
A job in the READY state is ready to print but is not yet printing. The job enters the
READY state when the application closes the collector process.
The job waits in the device queue until it is ready to print. A job in the PRINT state is
being printed. The PRINT state is normally the last state before the job is deleted from
the spooler. To prevent the spooler from deleting a job after printing, use Peruse to set
the hold-after-printing flag; see Section 3, Peruse, for details.
You can put a job in the HOLD state by entering the Peruse HOLD command. A job in
the HOLD state is not printed and remains in the spooler indefinitely until you delete it
or remove the HOLD state.
You can put a job in the HOLD state at any time. If the job is in the READY or PRINT
state, it can be placed in the HOLD state immediately. If it is in the OPEN state, it is
placed in the HOLD state after the application output is complete.
The life cycle of a print job starts with the OPEN state, which continues while the
application writes the data to the collector and the collector stores the data in a disk
file. When the application has sent all the data to the collector, the job is in the READY
state. The job then enters the PRINT state if its spooler location is associated with a
device. (If the location is not associated with a device, the job enters the HOLD state.)
When printing is complete, the spooler deletes the job unless the hold-after-printing
flag is set. You can also delete a job from the spooler by using a specific request. If
the job is printing when you make that request, the job immediately stops printing and
is deleted.
Figure 2-3. Life Cycle of a Spooler Job
003CDT .CDD
Job is
created
OPEN READY PRINT
Job is
deleted
HOLD