Universal Printer shortcut
devices enable you to generate
SAS/GRAPH output using the Universal
Printing system without specifying ODS statements or an OPTIONS PRINTERPATH=
statement. The shortcut devices were created primarily for use with
the LISTING and HTML destinations. They perform two functions:
-
set the PRINTERPATH= system option.
These options determine which Universal Printer is used to generate
your final output.
(See PRINTERPATH= System Option in SAS System Options: Reference in SAS System Options: Reference for more
information.)
-
convert
SAS/GRAPH GRSEG output
into instructions understood by Universal Printers.
Using a Universal Printer
shortcut device requires that there is a Universal Printer with the
same name in the SAS registry. Universal printers have already been
defined for all of the shortcut devices that are shipped with SAS.
However, if you create your own device by copying one of the Universal
Printer shortcut device entries, then you must make sure that you
define a Universal Printer with the same name as your new device entry.
For information about
creating a new SAS/GRAPH device, see Creating a Custom Device. For information about
defining a new Universal Printer, see Define a New Printer in SAS Language Reference: Concepts in SAS Language Reference: Concepts.
Differences in Using Shortcut Devices and Universal Printers
|
Using a Universal Printer
directly
|
goptions device=PNG;
/* procedure step */
|
The following two sets
of code are equivalent.
|
ods printer printer=PNG;
/* procedure step */
ods printer close;
|
options printerpath=PNG;
ods printer;
/* procedure step */
ods printer close;
|
The device is set to
PNG by the GOPTIONS statement.
The default output filename
is controlled by the procedure (for example, sasgraph.png).
|
The device is set to
SASPRTC because SASPRTC is the default device for the PRINTER destination.
The Universal Printer
is set to PNG by the PRINTER= or PRINTERPATH= option.
The default output filename
is controlled by ODS (for example, sasprt.png).
|
Universal Printer Shortcut Devices
|
|
|
|
|
|
|
|
|
|
|
Archive PDF - ISO-19005-1/b
|
|
|
|
|
|
PNG Universal Printer-300
dpi
|
|
PNG Universal Printer
with Transparency
|
|
PostScript Level 1 (Color)
|
|
PostScript Level 1 (Gray
Scale)
|
|
PostScript EPS (Gray
Scale)
|
|
|
|
|
|
SVG Transparency Universal
Printer
|
|
SVG Printer w/ Control
Buttons
|
|
SVG Compressed Universal
Printer
|
|
|
|
PostScript EPS (Gray
Scale)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PNG Universal Printer
with Transparency
|
|
PostScript Level 1 (Gray
Scale)
|
|
PostScript Level 1
(Color)
|