BookmarkSubscribeRSS Feed
Fabrice
Calcite | Level 5

Dear all,

I would like to know whether it is possible to run SAS programs from a JAVA (e.g. Eclipse) running on a WINDOWS computer; and if yes, what is the best way.

Thank you in advance.

Regards,

Fabrice

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Yep, it is possible.  Try this article:

http://www.lexjansen.com/pharmasug/2001/proceed/techtech/tt07_curnutt.pdf

Or check out SAS AppDev Studio.

PeterAndersson
Calcite | Level 5

Use the SAS IOM Bridge which allows you to use CORBA in your Java application (e.g inside Eclipse) to remotely execute SAS code as well as reading SAS data.

The SAS AppDev Studio comes with the required JARs.

In Eclipse you have to add the libraries under SASVersionedJarRepository which you will find under your local SAS installation.

The Lexjansen approach previously mentioned by RW9 does not actually run the SAS program but generates SAS code from Java then you have to submit the generated program using SAS connect.

The best way?

If you must run the SAS code from inside the Java application either you have to use SAS IOM Bridge. This requires understanding of SAS IOM as well as CORBA to set up.

Altenatively you need sas.exe on your system then you can use Runtime.getRuntime().exec from inside eclipse.

Choose what suits your environment and skills the best.

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
  • 2 replies
  • 6004 views
  • 1 like
  • 3 in conversation