SAS FAQ How can I direct the output from PC SAS to a file?
When running SAS programs interactively through the display manager, the output from any procedure is written to the Output window and notes, warnings and errors are written to the Log Window. Contents of these windows are temporary. They can be saved to a file using the File Save pulldown menus from the Output Window and from the Log Window. But if you want to make sure that the output of these windows is saved to a file every time, you can use proc printto to automatically route output to a file. For example, the following program routes the output from proc printto directly to a file named auto.lst. What would have gone to the Output Window is redirected to the file c:\auto.lst . PROC PRINTTO PRINT=’c:\auto.lst’ NEW; RUN; PROC PRINT DATA=auto; VAR make price ; RUN; PROC PRINTTO PRINT=PRINT; RUN; Let’s look at each statement more closely. The statements below tell SAS to send output that would go to the Output Window to the file c:\auto.lst and to create a new file if the file curren
Related Questions
- I want to save paper while printing. How can I change the font when printing my SAS code, output file, and log file?
- I want to save paper while printing. How can I change the font when printing my SAS code, output file, and log file?
- SAS FAQ How can I direct the output from PC SAS to a file?
- Can I redirect the output from perfdump to a flat file?
- Can I redirect the output from perfdump to a flat file?
- Can OnTraq output data for SPSS, SAS and other programs?