Use PROC PRINTTO and the LOG= options. Just remember to reset the log to its default location or else the log will contain all log data of your SAS session and not just the particular program you want to see.
Ex
Code:
proc printto log='c:\test.log';
run;
***Your SAS code here ***;
***reset ***;
proc printto;
run;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.