I've been building an automation program in vbs that uses the SAS EG scheduling vbs as a framework and then I've heavily customised it.
Part of that customisation is to run a list of EGP files listed in a set of calls. This all works fine, but my final task is to build a timeout functionality, which I know windows task scheduler has built in, but this is for the entire script. What I am trying to do is build it specific to each time an EGP is called, so that it can kill one if it takes too long and then move on to the rest.
What I ended up trying is using the prjobject.isrunning but it doesn't function the way I expected, I can't find any documentation about it and I was hoping someone had used it succesfully in the past.
Failing that, has anyone achieved something similar via a different method?
Well, this isn't the direct answer to your question, I too am looking for information about SAS EG COM documentation and functionality for similar purposes.
Since no other answer is provided in 2 years I thought I might add my two-cents about a work-around. . .
Could attempt to spawn another process via powershell and track that process rather than the Enterprise Guide process itself. You can infer that when your powershell child process is complete that the Enterprise Guide program it ran is complete - if the child process hangs, you can infer that the EG program is the culprit for the hanging
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →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.
Ready to level-up your skills? Choose your own adventure.