The syntax of the options
passed to the print command is controlled by the LPTYPE system option.
If LPTYPE is set to BSD, the command uses
lpr
command
options. If LPTYPE is set to SYSV, the command uses
lp
command
options.
If your site uses a
print command (spooler) other than
lp
or
lpr
,
print-command specifies
its name. The PRINTCMD option overrides the LPTYPE setting.
When specified in an
OPTIONS statement, the PRINTCMD option will not change the print commands
assigned to previously defined filenames. For example, consider the
following code:
filename pc1 printer;
proc printto print=pc1;
run;
proc print data=sales.week;
run;
options printcmd="netlp";
filename pc2 printer;
proc printto print=pc2;
run;
proc print data=sales.month;
run;
Output associated with
PC2 will use the
netlp
command; output associated
with PC1 will use the default print command.