I have SAS enterprise guide .egp projects that are set on a schedule. They generally run fine. But I have had failures that show the error code 0xE0434352 in the task scheduler. I think that what’s causing the failure is that the project log has gotten too big. (If I run the process flow manually, I get the pop ups saying it has exceeded a certain size.) After I clear the log and turn it off, the task runs as scheduled.
I’m a little bit dubious that oversized project log prevents scheduled tasks from completing, so I wanted to ask for the community’s wisdom.
The reason I’m asking #2 is because I find utility in having the project log for troubleshooting. If I have to turn off all my project logs to allow schedules, I’ll do it, but I’d prefer to not have to.
SAS 9.4, EG 7.1, Server 2012 R2
Thanks!
Simple solution: convert your projects to .sas files, and run those in batch. SAS can write to log files until it runs out of disk space.
Simple solution: convert your projects to .sas files, and run those in batch. SAS can write to log files until it runs out of disk space.
Hello @Rodcjones,
I agree and endorse the recommendation provided by Kurt. I would say that seems to be the best option.
Alternatives I can think of:
- Switch of project logs, indeed, as you said
- Split them up and make smaller projects and create a chain of them
- Reduce the information level on the project logs (defined on the xml definition for your project logs)
And I cannot think ofany other. Perhaps you may try to create a trigger on the schedule, to first launch a bat to clean the log and then re-run the scheduled EG project
You can change the prompted size of your EG project log using the ProjectLogMaxSize option. This post explains how:
https://blogs.sas.com/content/sasdummy/2010/12/17/sas-logs-in-enterprise-guide-wheres-the-beef/
Starting in EG 7.15, you can perform Project Log operations (enable/disable, get the log text, save to file, send email, or clear) via the EG automation interface, so another option would be to add a Clear call to your scheduled .vbs file (and optionally save the project log out before clearing). For example:
Set objProjectLog = objProject.ProjectLog objProjectLog.Clear() ' Other optional operations 'objProjectLog.Enabled = True 'strProjectLog = objProjectLog.Text 'objProjectLog.SaveAs "c:\temp\projectLog.txt" 'toList(0) = "me@here.com" 'objProjectLog.SendMail "", "", toList, ccList, "my subject", "my body text"
Casey
Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF
View now: on-demand content for SAS users
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.