Previous Page | Next Page

SAS System Options

PRINTERPATH= System Option



Specifies the name of a registered printer to use for Universal Printing.
Valid in: configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Restriction: The PRINTERPATH= system option is ignored when the DEVICE= system option is set to the ActiveX or Java devices.
Category: Log and procedure output control: ODS Printing
PROC OPTIONS GROUP= ODSPRINT

Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

PRINTERPATH=('printer-name' <fileref>)


Syntax Description

'printer-name'

must be one of the printers defined in the Registry Editor under Core [arrow] Printing [arrow] Printers

Requirement: When the printer name contains blanks, you must enclose it in quotation marks.
fileref

is an optional fileref. If a fileref is specified, it must be defined with a FILENAME statement or an external allocation. If a fileref is not specified, the default output destination can specify a printer in the Printer Setup dialog box, which you open by selecting File [arrow] Printer Setup. Parentheses are required only when a fileref is specified.


Details

If the PRINTERPATH= option is not a null string, then Universal Printing will be used. If the PRINTERPATH= option does not specify a valid Universal Printing printer, then the default Universal Printer is used.


Comparisons

A related system option SYSPRINT specifies which operating system printer will be used for printing. PRINTERPATH= specifies which Universal Printing printer will be used for printing.

The operating system printer specified by the SYSPRINT option is used when PRINTERPATH="" (two double quotation marks with no space between them sets a null string).


Examples

The following example specifies an output destination that is different from the default:

options PRINTERPATH=(corelab out);
filename out 'your_file';

Operating Environment Information:   In some operating environments, setting the PRINTERPATH= option might not change the setting of the PMENU print button, which might continue to use operating environment printing. See the SAS documentation for your operating environment for more information.

For additional information about declaring an ODS printer destination, see ODS statements in SAS Output Delivery System: User's Guide.   [cautionend]

For additional information about the SAS universal print facility, see Printing with SAS in SAS Language Reference: Concepts.

Previous Page | Next Page | Top of Page