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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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