Saving and Printing Data |
You can print the contents of the data window by saving it as a SAS data set and using the PRINT procedure. PROC PRINT sends its output to the Output window. You can send the contents of the Output window to a file or printer.
Enter a PROC PRINT statement in the Program Editor. |
Figure 26.5: Program Editor
Choose Run:Submit. |
This displays the observations in the Output window.
Figure 26.7: Output Window
You can send the contents of the Output window to a file or to a printer by choosing File:Print in the Output window. On many hosts, the SAS System is installed so that this menu sends the contents of the Output window to a default printer. You can also choose this menu to save the window contents to a file and later route them to a printer using appropriate host commands.
Alternatively, you can redirect SAS System output from the Output window to a text file by using the PRINTTO procedure.
For more information on printing from the Output window, refer to the SAS companion for your host. For more information on PROC PRINT and PROC PRINTTO, refer to the SAS Procedures Guide.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.