Spooler Plus Utilities Reference Manual
Introduction to the Spooler Plus Subsystem
Spooler Plus Utilities Reference Manual—522294-002
1-16
Sending Process Output to a SPOOL DEFINE
3> TFORM /IN MYFILE, OUT $S/
In this case, the job is sent to #DEFAULT and is printed on one of the devices 
associated with the #DEFAULT group name.
Sending Process Output to a SPOOL DEFINE
You can also use a SPOOL DEFINE to specify the attributes of a spooler job before 
you create it. Specifying all the spooler job attributes in a SPOOL DEFINE is faster 
than using Peruse to change the job attributes after the job is in the spooler.
You specify the name of the SPOOL DEFINE as the OUT file when you run your 
program. For example, the following command creates a SPOOL DEFINE that 
specifies attributes for a spooler job:
1> ADD DEFINE =MYJOB, CLASS SPOOL, COPIES 3, FORM PAYCHK,&
1> &HOLDAFTER ON, LOC $S.#LLP, OWNER PAYROLL.MANAGER,&
1> &SELPRI 7, REPORT "Nov. Pay"
To view all the attributes of this DEFINE, enter:
2> INFO DEFINE =MYJOB, DETAIL
 DEFINE NAME =MYJOB
 CLASS SPOOL
 LOC $S.#LLP
 COPIES 00003
 FORM PAYCHK
 HOLDAFTER ON
 OWNER 005,255
 SELPRI 7
 REPORT NOV. PAY
Next, you run the program that produces the spooler output; in this example, the 
program calculates paycheck amounts from the current payroll records. The OUT file 
in your command is the SPOOL DEFINE you just created:
3> PAYCALC / IN NOV.PAYRCDS, OUT =MYJOB /
For detailed information on how to use DEFINEs, refer to the TACL Reference Manual.
The Spooler and Batch Jobs
A batch job is an ordered set of one or more jobs which are linked together and 
assigned a batch number by the spooler. The batch number allows member jobs to 
be referred to and manipulated as a set. Commands also allow member jobs to be 
deleted from or added to a batch job.
A batch job is considered open if one or more member jobs are open; that is, they are 
still being collected. Once a batch job is closed, it is scheduled for delivery in the same 
way as a single job. The spooler actually schedules just the first job in the batch, but 
the total lines and total pages attributes are changed to reflect totals for the entire 
batch.










