Spooler Plus Programmer's Guide
Spooler Procedure Calls
Spooler Plus Programmer’s Guide—522293-003
4-40
Considerations
Spoolcom BATCH Command Parameters
To send the equivalent of a Spoolcom BATCH command, specify a file number for the 
filenum-of-supervisor parameter and a command-code of 8. The command-
parameter in this case is the batch number, not to exceed one word in length. Find 
the subcommand-code and the subcommand-parameter for the Spoolcom BATCH 
parameters you want from Table 4-10. 
filenum-of-supervisor: a file number
command-code:  8
command-parameter:  a batch number
For example, to specify that batch 78 requires a special form, you could enter the 
following:
STRING .PAYROLL [0:7] := ["PAYROLL "];
COM^ERROR := SPOOLERCOMMAND (4, 8, 78, 107, PAYROLL);
Refer to the Spooler Plus Utilities Reference Manual for a description of the Spoolcom 
BATCH parameters.
Considerations
The following considerations apply to the use of the SPOOLERCOMMAND procedure:
Note that subcommand-code is a required parameter on every call to 
SPOOLERCOMMAND.
Table 4-10. SPOOLERCOMMAND Parameters for Spoolcom BATCH
Spoolcom BATCH
Subcommand
subcommand-code
(Fourth Parameter)
subcommand-parameter
(Fifth Parameter)
COPIES 123 num-copies (INT:1)
DELETE 116 None
FORM 107 [ form-name ] (STRING:8)
HOLD 122 None
HOLDAFTER 121 0 = off, 1 = on (INT:1)
LINK 129 job number (INT:1)
LOC 125 [ loc-name ] (INT:8)
OWNER 127 group  = <0:7>
user = <8:15> (INT:1)
REPORT 124 [ report-name ] (STRING:8)
SELPRI 126 sel-pri (INT:1)
START 115 None
UNLINK 130 job number (INT:1)










