PRINTCMD System Option: UNIX

Specifies the print command SAS is to use.
Valid in: configuration file, SAS invocation, OPTIONS statement, SASV9_OPTIONS environment variable
Category: Log and procedure output control: Procedure output
PROC OPTIONS GROUP= LISTCONTROL
Default: none
UNIX specifics: all

Syntax

-PRINTCMD “print-command
PRINTCMD=“print-command

Required Argument

print-command
specifies the options that you can use with PRINTCMD.

Details

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.