Architecting, installing and maintaining your SAS environment

How to run a project .sas in java client

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

How to run a project .sas in java client

[ Edited ]

Hi!

I need run a sas project in java client application with IOM library but i dont locate one sample for this.

Exists this sample?

Tanks!


Accepted Solutions
Solution
‎08-16-2016 12:48 PM
Super User
Posts: 6,946

Re: Whow to run a project .sas in java client

When you "only" have EG on your desktop, you need to have .egp files, as a .sas does not have the necessary connection informations that tell EG where/how to run the SAS program.

If you want to run a .sas file (which is a simple text file containing SAS code), you have to store it where the sas executable on the SAS server can see it (network share, or copy it to the server with SFTP), and then start sas remotely (eg via SSH). But in this case you also have to worry about what to do with the results.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Super User
Posts: 6,946

Re: Whow to run a project .sas in java client

The Integrated Object Model library deals with connection to servers, but the .egp files are native to the Enterprise Guide client application.

I don't think you will find anything that deals with egp files in the IOM library.

Even running EG projects in batch (scheduler) requires EG to be present as a kind of interpreter.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Super User
Posts: 6,946

Re: Whow to run a project .sas in java client

And if you want to run a .sas (SAS program) file, you need the SAS Foundation, and basically run it as sas program.sas from the commandline or using the systems exec() call

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
New Contributor
Posts: 3

Re: Whow to run a project .sas in java client

Ok. I understand.

But i try with exec() and dont work because not exists "SAS.exe" in my machine, only sas enterpise.

But thankyou for help

Solution
‎08-16-2016 12:48 PM
Super User
Posts: 6,946

Re: Whow to run a project .sas in java client

When you "only" have EG on your desktop, you need to have .egp files, as a .sas does not have the necessary connection informations that tell EG where/how to run the SAS program.

If you want to run a .sas file (which is a simple text file containing SAS code), you have to store it where the sas executable on the SAS server can see it (network share, or copy it to the server with SFTP), and then start sas remotely (eg via SSH). But in this case you also have to worry about what to do with the results.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
SAS Super FREQ
Posts: 291

Re: How to run a project .sas in java client

Are you looking to run a specific project, such as EG, or another client's project, such as EMiner or any other SAS solutions?

New Contributor
Posts: 3

Re: How to run a project .sas in java client

I need to run a specific project, .sas or .epg

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 354 views
  • 0 likes
  • 3 in conversation