Sending ODS Output to Your Printer

If you want to send your output directly to your default printer from Windows, all you need is the following code:

ODS PRINTER;
title 'Monthly Complaint Summary';
proc freq data=complaints;
   tables location*complaint / norow nocol nopct;
run;
ODS PRINTER CLOSE;

The first ODS statement starts routing output to your SAS default printer as defined by the SYSPRINT= SAS system option. The second ODS statement ends the file and submits the print job. If you forget the second ODS statement, your file will not print until you end your SAS session.

The standard listing output for this code is shown in Figure 5.21. It's a basic crosstabulation of two variables. The listing output is adequate, but it has some problems. ...

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.