Desktop productivity for business analysts and programmers

Run an Enterprise Guide Project (.egp file) from Unix command line

Reply
New Contributor
Posts: 4

Run an Enterprise Guide Project (.egp file) from Unix command line

Hello,

I'm looking to find a way to run an .EGP file from the Unix command line in unattended mode (or noninteractive mode, as SAS usually calls it). My current setup is a Windows client and Unix server, with .EGP files saved in Unix filesystems.

I'm used to submitting .SAS programs with the following command in Unix:

> nohup /sas_installation_path/sas -sysin "/program_path/program_filename.sas" &

This allows me to leave programs running whenever I'm in transit and need to shutdown/hibernate/sleep the client machine (laptop).

I'd like to do the same with Enterprise Guide projects, but without the need to export them as code.

Is this even possible?

Thank you,

Euripedes

Trusted Advisor
Posts: 1,213

Re: Run an Enterprise Guide Project (.egp file) from Unix command line

Hi,


You will probably get more responses if you post this in the Enterprise Guide forum.

I suggest taking a look at this paper from Chris Hemidinger:

  http://support.sas.com/resources/papers/proceedings12/298-2012.pdf

From a quick glance, looks to me like this approach would have the job be started from windows, not Unix.  I don't know whether you could shutdown the PC after starting the job.

--Q.

Respected Advisor
Posts: 3,063

Re: Run an Enterprise Guide Project (.egp file) from Unix command line

If my understanding is correct, EG projects can only be run by EG itself (a full EG environment is required). EG is a Windows-only SAS client tool, built using Microsoft's .NET. Therefore I think you may be stuck with exporting your code for it to run on Unix.

Trusted Advisor
Posts: 1,056

Re: Run an Enterprise Guide Project (.egp file) from Unix command line

Hi, Euripedes

I'm in accord with the previous responses. EG is a Windows-only product, and I believe the only way to run it "unattended" is to use Windows automation features, as described in the paper referred to by Quentin.

The SAS code that is submitted by EG, on the other hand, can be run in Unix environments, but as you said it needs to be external to the EG project. This is quite feasible, by the way.

The previous responses are correct, that if you have an EG project running, your Windows workstation can't be restarted.

Some comments:

1. There are a variety of options within the SAS ecosystem that could be used to accomplish your objectives. Some discussions with your SAS account manager may be in order.

2. Definitely post this to the Enterprise Guide forum, to get Chris' attention. He's the gold standard on this subject.

Tom

Super Contributor
Posts: 333

Re: Run an Enterprise Guide Project (.egp file) from Unix command line

I believe if memory serves you can have links to programs in EG that it will edit and update. So a possible solution may be to have the programs external to EG so they can be batched as needed, but when the project is opened in EG they can still be edited and ran from the project flow.

Not knowing the full situation this approach may or may not be viable, but thought I would post it.

EJ

New Contributor
Posts: 4

Re: Run an Enterprise Guide Project (.egp file) from Unix command line

Hello,

Thank you all for your replies, they've been very helpful.

I'll post the question on the EG forum as you suggested.

Best,

Euripedes

Ask a Question
Discussion stats
  • 5 replies
  • 2635 views
  • 6 likes
  • 5 in conversation