BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Is there a way to launch an SAS Project (EGP file) from a SAS job?
5 REPLIES 5
LinusH
Tourmaline | Level 20
Without actually knowing, my guess is: no, you can't.
What are you trying to do?
From what kind of SAS session do you want to execute an EG project?
Why can't you just export the project as SAS code, or register it as a Stored Process?

/Linus
Data never sleeps
ChrisHemedinger
Community Manager
You can script SAS Enterprise Guide to open/run a project or process flow, or do a number of other actions. All of this is "invisible" - no UI is presented when you script EG. To script EG you need to use a scripting language such as VB Script or PowerShell, which you can launch using the X statement or SYSTASK function in SAS. Note that you will need SAS Enterprise Guide to be installed on the machine that is running the script.

Here is the API documentation:

http://support.sas.com/documentation/onlinedoc/guide/SASEGScripting42.zip

Also, there are several examples at:

http://support.sas.com/kb/40/781.html

If you want to just launch the project into an EG session for a user to interact with, you can open an EG project with a command such as:

"C:\Program Files\SAS\EnterpriseGuide\4.3\SEGuide.exe" <>

Chris
Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
JH
Calcite | Level 5 JH
Calcite | Level 5
Chris I tried to view the api help file after downloading, do I need to place it somewhere special, when I load it the contents come up but the html page says it is a invalid address when i click one of the documents in the tabel of contents.

thanks
ckx
Quartz | Level 8 ckx
Quartz | Level 8
I also downloaded "SASEGScripting42.zip" a few days ago. I can't open the extracted chm file but I can open it from the zipfile just fine. Pretty strange
ChrisHemedinger
Community Manager
You might be running into the issue with CHM file content being "locked" when you download it from the web.

If you can get the ZIP file and extract the CHM file, right-click on the CHM file and select Properties, then Security, and "unblock" it so that you can read it.

Chris
Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 5 replies
  • 1694 views
  • 0 likes
  • 5 in conversation