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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
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
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

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