Selecting a Printer

The previous example showed how to print output to your default printer. You could send your output to another printer by closing SAS, changing the default printer, and launching SAS again. However, there is an easier way to switch printers: the PRINTER= option.

This option is used in the first ODS PRINTER statement:

ODS PRINTER PRINTER=printername;

The value you fill in for printername is the name assigned to the printer that you want to use. This can be a local printer, a network printer, or it could even refer to a file on disk.

You can find out the names of all of your available printers on the Windows host by selecting File and then Print from within SAS. This opens up a print dialog box that has a list of all of the ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.