Previous Page  Next Page 
Saving and Printing Data

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.

spd05.gif (4237 bytes)

Figure 26.5: Program Editor


Choose Run:Submit.

[menu]
Figure 26.6: Run Menu

This displays the observations in the Output window.

spd07.gif (9425 bytes)

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.

[menu]

Figure 26.8: File Menu

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.

Previous Page  Next Page  Top of Page

Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.