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.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.