hi all, please suggest me a solution to export all the logs generated in EG to a unix location. I am having 3-4 programs in my EG project and want all of them to be exported. thanks in advance.
Check proc printto
Hi Xia, Proc printto is working, but I am not able to see the log in EG window. Any solution to see the log in both the places ie EG window and the unix location?
After running proc printto code ,you can print them back into LOG window by using another data step . Like :
.....................
proc printto;run;
data _null_;
infile 'the file name of printto' ;
input;
putlog _infile_;
run;
Xia Keshan
Very useful. Thank you.
You can do this serverside.
First of all, you need to configure your workspace server to write separate logs for each session and also to include all actions done on the client. You do that in the sasv9_usermods.cfg and the logconfig.xml file.
Then you need to set up a process that copies the logs to the wanted location.
Regarding proc printto, specify the code you used, the log and what did not work.
"not working" ???
ask your platform admin to activate logging using that logging framework at the server side.
The APM tooling is a standard documented approach with that. No need for manual coding.
If your objective is just to keep logs of your EG Project runs, you could consider exporting your projects as code and run them as SAS batch jobs which generate log files automatically. That way you don't need to make any process changes (PROC PRINTTO) or configure your SAS servers for logging.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.