Spooler Programmer's Guide
Spooler Procedure Calls
Spooler Programmer’s Guide—522287-002
4-35
SPOOLERCOMMAND Procedure and Subcommand
Parameters
Spoolcom LOC Command Parameters
To send the equivalent of a Spoolcom LOC command, specify a file number for the
filenum-of-supervisor parameter and a command-code of 3. Find the
command-parameter, subcommand-code, and subcommand-parameter for the
Spoolcom LOC parameters you want from Table 4-5.
filenum-of-supervisor: a file number
command-code: 3
For example, to specify $LP as a default print device, you could enter the following:
INT .LOC [0:15] := ["#PRIN DEFAULT "];
INT .DEV [0:15] := [" $LP "];
COM^ERROR := SPOOLERCOMMAND (4, 3, LOC, 131, DEV);
This is equivalent to the interactive command:
SPOOLCOM LOC #PRIN.DEFAULT, DEV $LP
Refer to the Spooler Utilities Reference Manual for a description of the Spoolcom LOC
parameters.
Table 4-4. SPOOLERCOMMAND Parameters for Spoolcom JOB
Spoolcom JOB
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)
LOC 125 [location-name](INT:8)
OWNER 127 group = <0:7>
user = <8:15>
(INT:1)
REPORT 124 [report-name] (STRING:8)
SELPRI 126 selection
priority
(INT:1)
START 115 None
SUMMARY 167 None