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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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