Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

SAS FAQ How can I direct the output from PC SAS to a file?

file output pc SAS
0
Posted

SAS FAQ How can I direct the output from PC SAS to a file?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123