Reputation: 3
I'd like to send my SAS log via email. I found a lot of documentation to do it by saving the log on the disk. I can't use this kind of approach because of file system restrictions. Would it be possible to redirect my log to a macro variable and put it in the email?
Upvotes: 0
Views: 128
Reputation: 6378
No I don't think you can redirect the log to a macro variable. But you always have write access to the work directory, so you can write it there, like:
proc printto log="%sysfunc(pathname(work))/mylog.log" new ;
run;
Upvotes: 3