Desktop productivity for business analysts and programmers

launching an EGP from a SAS

Reply
N/A
Posts: 0

launching an EGP from a SAS

Is there a way to launch an SAS Project (EGP file) from a SAS job?
Esteemed Advisor
Posts: 5,198

Re: launching an EGP from a SAS

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
Community Manager
Posts: 2,692

Re: launching an EGP from a SAS

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
JH
N/A
Posts: 1

Re: launching an EGP from a SAS

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
Contributor ckx
Contributor
Posts: 54

Re: launching an EGP from a SAS

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
Community Manager
Posts: 2,692

Re: launching an EGP from a SAS

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
Ask a Question
Discussion stats
  • 5 replies
  • 283 views
  • 0 likes
  • 5 in conversation