Chapter Contents

Previous

Next
PRINTCMD

PRINTCMD



Specifies the print command the SAS System is to use

Default: none
Valid in: SAS invocation, SASV8_OPTIONS environment variable, configuration file, OPTIONS statement
UNIX specifics: all


Syntax
Details
See Also

Syntax

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


Details

If your site uses a print command (spooler) other than lp or lpr, print-command specifies its name.

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.

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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.