Spooler Plus Programmer's Guide

Introduction to the Spooler Plus Subsystem
Spooler Plus Programmers Guide522293-003
1-27
The Spooler and Batch Jobs
The method that the spooler uses to determine if a job becomes a normal job, the first
job in a batch job, or a job to be linked to an existing batch job is shown in Figure 1-7.
If a job is part of a batch job, you cannot alter the key attributes unless you use the
Peruse UNLINK command or the UNLINK option of the Spoolcom BATCH command to
unlink the job from the batch job.
Other job attributes have no effect on whether the job is linked to a batch job. Some
attributes might have no meaning for a job that is part of a batch job. For example,
if every job within a batch job contains a different report name, only the report name
associated with the first job in the batch job is printed on the header pages for that
batch job. Attributes that have meaning only to the first job in a batch job are the report
name, batch name, and selection priority.
Figure 1-7. How the Spooler Determines Which Jobs Are to Be Batched
FUP/OUT$S7. output-device,NOWAIT/COPY filename
Spooler Collector
OPEN
request
to $S
Is there
a JOBID?
Job is a normal
job
Yes
Is there an
open spooler
batch job with
the same key
attributes?
Yes
Link this job to the
first spooler batch
job
Create a new spooler
batch job
First job for the
assigned
spooler batch
job
VST004.vst
No
No