Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Saving The Log File

Status
Not open for further replies.

tubbsy123

Programmer
Dec 2, 2004
19
0
0
AU
Hi,

I was wondering whether its possible to save the log to a specific folder, eg D:\SAS-Log, after a process has completed.

Is this possible and do you know how to go about it?

Thanks for any help provided.

Regards

tubbsy123
 
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;

I hope that this helps you,
Klaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top