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

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")

1 ACCEPTED SOLUTION

Accepted Solutions
unison
Lapis Lazuli | Level 10

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?

-unison

View solution in original post

4 REPLIES 4
unison
Lapis Lazuli | Level 10

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?

-unison
cmcewen
Calcite | Level 5

That's the breadcrumb I needed. I'm now figuring out that part, but thank you! 

unison
Lapis Lazuli | Level 10

Not a problem, I had a similar issue a few months ago when I was attempting to schedule code via vbs script.

 

cheers,

 

-unison

-unison
daanm
Calcite | Level 5

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 2712 views
  • 1 like
  • 3 in conversation