BookmarkSubscribeRSS Feed
saslover15
Obsidian | Level 7

Is there a way to send the logs for an entire egp file to an alternate location?  Currently, when running an egp file in an opened SAS EG session, in order to see all the logs, after the run, you have to double click on each little widget (the query builder, the sort, the hand-coded sas programs, etc).

What I want instead is for ALL logs from all widgets in the project to get routed somewhere else (to the location of my choice).  I have tried running a piece of SAS code in an Autoexec process flow to run the following line of code, but that didn't work:  %LET LOGPATH = "/server/MyFiles/logs/MyLog.log";

 

I don't care if it writes all logs compiled into one file, or a separate log file for each widget - I just want a way to capture all logs from the egp file runs.

 

3 REPLIES 3
saslover15
Obsidian | Level 7
And this has to be in an automated fashion. It is not an option for me to click on each widget after each run and save the logs. I need a way for them to automatically go to a specific location.
ChrisHemedinger
Community Manager

Have you looked at the Project Log?  You can also automatically export this log as a step, I believe.

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!
saslover15
Obsidian | Level 7
Yes! This worked. First I turned on the log via Properties - Project Properties. And yes, I was able to export as a step. The questions I have now is

1) How to get the Project Log to clear automatically with each run, rather than a person having to manually go in and click "Clear Project Log".

2) How to name the project log uniquely with each run when it exports.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2425 views
  • 1 like
  • 2 in conversation