BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jtlbg
Obsidian | Level 7

I want to save the log of every run of a process. I know I can use EG's "Export Log as a Step In Project" feature, and I know this will even create timestamped files to avoid overwriting a previously output log. All good so far.

 

However, if an error occurs in the step that generated the log, EG won't proceed to the export step, so it doesn't export the log. Saving the logs is much more important when errors occur so it is unfortunate that I've managed to get this working in the happy path but not the case where it really matters.

 

It seems like my current solution would work if I could force EG to continue running a branch of a process flow even in the face of errors. Is this possible?

 

I've read the thread on log saving which discusses proc printto and other workarounds, but I'm keen to find a solution which is simple and a natural use of the tool.

 

I am using Enterprise Guide 7.13 on SAS 9.4 on Linux.

1 ACCEPTED SOLUTION

Accepted Solutions
jtlbg
Obsidian | Level 7
I'm silly. I found the option I'm looking for. In Project properties you can choose Continue Execution on errors. This lets the Export task run even when the previous step error'd.

View solution in original post

5 REPLIES 5
Criptic
Lapis Lazuli | Level 10

If you are using the EG'S Export Log as a Step In Project feature then on the first screen out 4 you can set a checkmark that will export the log even if the programm itself throws an error.

jtlbg
Obsidian | Level 7
@Criptic - that's initially what I thought, but that's not actually what happens. It seems that the export task runs, but it exports a previous version of the log, not the latest one with the errors in it.
jtlbg
Obsidian | Level 7
I'm silly. I found the option I'm looking for. In Project properties you can choose Continue Execution on errors. This lets the Export task run even when the previous step error'd.
Criptic
Lapis Lazuli | Level 10
That's exactly the check mark I was talking about

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 5 replies
  • 3733 views
  • 0 likes
  • 3 in conversation