cinghio
cinghio

Reputation: 3

Retrieving the SAS log without using a file

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

Answers (1)

Quentin
Quentin

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

Related Questions