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
Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
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
Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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