Guardian User's Guide
Introduction to the Spooler
Guardian User’s Guide—425266-001
12-10
Printing To the Spooler
Printing To the Spooler
To use the spooler from the TACL program, you specify a spooler destination for the 
OUT file parameter when you run your application. The spooler destination can either 
be a spooler location or a SPOOL DEFINE.
Sending Output to a Spooler Location
You can send your output directly to the spooler by designating a collector (such as $S) 
and a location (such as #LP.WEST) as the OUT file when you run your application. For 
example, to send the output from a TFORM process to the spooler:  
The collector $S creates the spooler job, assigns a job number, and stores the output in a 
disk file. When TFORM is finished, the spooler puts the job in the READY state. 
If a printer is associated with #LP.WEST, the job is printed when the printer is available. 
If a printer is not associated with the location, the job remains on the print queue until 
you delete it or send it to another printer.
The command is still valid if you do not specify the entire location name: 
If #LP is a nonbroadcast group, the job is printed on the first available printer associated 
with the #LP group. 
For location groups that have only one associated printer, the full location name is 
unnecessary. This is a valid TFORM command that does not specify the location:  
In this case, the job is sent to #DEFAULT and is printed on one of the printers 
associated with the #DEFAULT group name. 
10> TFORM /IN MYFILE, OUT $S.#LP.WEST/ 
11> TFORM /IN MYFILE, OUT $S.#LP/ 
12> TFORM /IN MYFILE, OUT $S/ 










