We have recently upgraded to SAS93. I am trying to write 'Proc Print' output to an external text file without any luck. Output is shown in the Results Viewer.
Example:
Filename CELPH 'Z:\SASPGM\Z9\Z9Output\Z9KeyCPUIndicatorsHourlyUsage.txt';
Proc printto print=CELPH new; run;
Title 'Z9 Hourly Interval Key Indicators - 2011';
Proc print split='*'; var LPARNAME STARTIME LPCTBY PCTLPBY LPMSUHR LPSHARC LPSHARE ;
By LPARNAME;
run;
Proc printto; run;
What do I need to change in order to write the Proc Print to an external text file please?
Thanks
Sarel Swanepoel
Hi Sarel
We would really need to see the LOG before being able to provide an accurate answer. Can you post that too?
However: My guess would be you have no errors or warnings in the log window/file? If that's the case (assuming you are using the classic display manager) click on Tools -> Options -> Preferences and select the "Results" tab. Check the Create Listing option. Or you could insert the following into the top of your program:
ods listing;
SAS 9.3 does not use the output window by default, output is now rendered in HTML.
Regards,
David.
Hi Sarel
We would really need to see the LOG before being able to provide an accurate answer. Can you post that too?
However: My guess would be you have no errors or warnings in the log window/file? If that's the case (assuming you are using the classic display manager) click on Tools -> Options -> Preferences and select the "Results" tab. Check the Create Listing option. Or you could insert the following into the top of your program:
ods listing;
SAS 9.3 does not use the output window by default, output is now rendered in HTML.
Regards,
David.
David, many thanks. I changed the 'Results' tab and it works perfectly.
Regards
Sarel
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.