You can save your graph
to a graphics output file, and then print the file using host commands.
You can perform these two steps separately or combine them by incorporating
the host printing commands into your program or graphics output device.
In any case, you must choose a graphics file format that is compatible
with your printer. For example, if you are using a PostScript printer,
be sure to create a PostScript file using the appropriate device for
the printer.
You can use any of the
following methods to create and print a graphics output file:
-
Use FILENAME and GOPTIONS statements
to create the graphics output file, and then use a host command to
spool the file to a spooler for the device.
-
Use an ODS PRINTER statement to
produce a Postscript, PDF, PCL, SVG, PNG, or GIF file. Then use a
host command or a host application command to send the file to the
printer.
-
Use the GDEVICE procedure
to modify a SAS/GRAPH device
to save the output to a graphics output file and spool the output
directly to a printer. See GDEVICE Procedure for information about modifying device entries.
-
Use the Universal Printing interface.
Note: On Windows platforms, the
ODS PRINTER destination uses the Universal Printing interface in addition
to the Windows system printers.
For detailed instructions
on each of these methods, refer to the SAS Help facility for
SAS/GRAPH.