BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

Just wondering if anyone knows of any referenece materials for VB communicating with SAS EG4 .Basically stuff relating to this:

Set mobjEnterpriseGuideApp = CreateObject("SASEGObjectModel.Application.4")

Its hard to find help on how to access the process flows and ordered lists from vb?

Any help will be appreciated. Thanks.
2 REPLIES 2
deleted_user
Not applicable
Hi,

In this link: http://support.sas.com/documentation/onlinedoc/guide/ you can find information about VB Scripting for Enterprise Guide.

Download EG 4.1 specific material at this link: Automating SAS Enterprise Guide with Scripts. Return always to this documentation for examples: OLE Automation Reference Help

Also, at this link: http://support.sas.com/kb/ you can do a keyword search for "VBScript" to retrieve some examples.

As for your specific request, I do not have a working example for a Process Flow/Ordered List Item, however, I do have a Query example:

Dim prjName
prjName = "C:\temp\myProject.egp" 'Project Saved in EG 4.1

Dim objGuide
Set objGuide = CreateObject("SASEGObjectModel.Application.4") 'EG 4.1

Dim prjObject
Set prjObject = objGuide.Open(prjName,"")

Dim ProjectItems
Set ProjectItems = prjObject.ProjectItems

Dim Query
Set Query = ProjectItems("Query for CLASS")

Good Luck!
deleted_user
Not applicable
Ok, Thanks. I will have a look. There seems to be a lot of information... so it should be good.

Thanks Again.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1336 views
  • 0 likes
  • 1 in conversation