SAS/GRAPH native drivers produce
output in the native language of the target device. Examples of
SAS/GRAPH
native drivers include:
produces Postscript
output.
produces output in
the PCL5 language that is used by Hewlett Packard LaserJet III printers.
produces HPGL output
that is used by Hewlett–Packard 7550 plotters.
After the
SAS/GRAPH
native printer driver has produced output in the native language of
the target device, SAS then routes the output to the device using
the Windows printer. SAS bypasses the Windows driver that is currently
associated with the target device, but it does respect the destination
that is specified in the
Print Setup dialog
box when deciding where to send the output.
To print a graph by
using a
SAS/GRAPH printer driver, run your
SAS/GRAPH program with
the following graphic options:
goptions device=driver-name;
where
driver-name is the name of a valid
SAS/GRAPH
device driver. Consider this example,
goptions device=hplj5p3;
This statement formats the graph for the Hewlett Packard LaserJet
Series V printer. You can view the complete list of
SAS/GRAPH drivers
by submitting the PROC GDEVICE statement.
To print a graph to
a printer file (also called a graphics stream file, or GSF) instead
of directly to a printer, use the GSFNAME option in the GOPTIONS statement
and use a filename or a fileref to specify where you want the output.
For example:
filename graphout "graphpic.prn";
goptions gsfname=graphout gsfmode=replace
device=hpljs2;