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
Category: Log and procedure output control: ODS Printing
PROC OPTIONS GROUP= ODSPRINT
Note: This option cannot be restricted by a site administrator. For more information, see Restricted Options.

Syntax

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

Syntax Description

'printer-name'
must be one of the printers defined in the Registry Editor under Corethen selectPrintingthen selectPrinters
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 Filethen selectPrinter 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).

Example

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.
The PRINTERPATH option is used only for ODS PRINTER and when the DEVICE= system option is set to SASPRTC, SASPRTRTG, SASPRTM, or SASPRT. If DEVICE=WINPRTC, WINPRTG, or WINPRTM, the devices behave respectively as SASPRTC, SASPRTG, or SASPRTM.

See Also

ODS PRINTER Statement in SAS Output Delivery System: User's Guide
Universal Printing in SAS Language Reference: Concepts