06-26-2013 01:25 PM
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?
06-26-2013 04:41 PM
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:
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.
06-26-2013 08:09 PM
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.
06-26-2013 11:51 PM
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.
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.
06-27-2013 07:36 AM
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.
06-28-2013 07:29 AM
Thank you all for your replies, they've been very helpful.
I'll post the question on the EG forum as you suggested.