BookmarkSubscribeRSS Feed
IditMaor
Calcite | Level 5

I have a code in java that generate excels with templates, can I reuse the code using sas guide or sas base?

3 REPLIES 3
AhmedAl_Attar
Ammonite | Level 13

Hi @IditMaor 

While reading the documentation link provided by @andreas_lds, you'll need to make sure it relates to your SAS server!

Enterprise Guide is a Windows Application connecting to a backend SAS server, and the SAS server can be Local (installed on the same Windows platform as your EG) or Remote (Installed on Linux/Unix/Cloud/Windows Server) 

 

With all that said, you'll need to have your custom Java Class/Code to reside on the same platform as your SAS server, as your SAS server is the sole responsible for executing Code and not your EG Front-End.

 

Hope this helps,

Ahmed

Sajid01
Meteorite | Level 14

Hello @IditMaor 
The answer to your question depends on how you to propose to use java.
We have java codes which are packaged as jar files and executed independently to supplement SAS programs.
It is indeed possible to execute execute the jar file from within SAS code. On approach is by using X command.
Data can be passed to the java jar using command line or as a csv file. 
Java can also be used to read SAS datasets but I would not prefer this approach.
Everything depends on what exactly is required and the SAS programmers comfort level.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 952 views
  • 0 likes
  • 4 in conversation