Previous Page | Next Page

System Options under UNIX

PRINTCMD System Option: UNIX



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

Syntax
Details
See Also

Syntax

-PRINTCMD "print-command"
PRINTCMD="print-command"


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.


See Also

Previous Page | Next Page | Top of Page