The following code used to work for the vbscript generated by the scheduler function for SAS EG 7.1, but no longer works as is with the upgrade to 8.1. Basically, I need to set my active profile to a different profile besides my default. Was there any change to this process with the upgrade to 8.1?
Set app = CreateObject("SASEGObjectModel.Application.8.1")
app.SetActiveProfile("Profile2")
You could have an issue with your SASEGScripting.DLL (i.e. create object on SASEGObjectModel.Application.8.1 is missing). What is the error message?
You could have an issue with your SASEGScripting.DLL (i.e. create object on SASEGObjectModel.Application.8.1 is missing). What is the error message?
That's the breadcrumb I needed. I'm now figuring out that part, but thank you!
Not a problem, I had a similar issue a few months ago when I was attempting to schedule code via vbs script.
cheers,
-unison
The SetActiveProfile function is not working anymore in the Enterprise Guide 8.1 scripting dll, due to a known bug. See Note 65291: A function call to change the active profile in a VBS file when scheduling a SAS® Enterp....
Our workaround is to first set the desired active profile in the Eguide 8.1 GUI application (i.e. not programmatically) and then run the vbs code.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.