- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I have a new project where we need to use Java program, which decrypts or encrypts the data using other tool. That Java program need to be used in SAS and create a program where any SAS programmer/analyst can use may be using macro or call that java program. End result should be a SAS program that can be used by any analyst or programmer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everyone,
I need help in using Java Program in SAS EG, can we call that and what plugins do we need. or any other method we would need to use Java program in SAS.
Thanks,
Sindhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Java code - try JavaObj.
https://documentation.sas.com/doc/en/lrcon/9.4/n0swy2q7eouj2fn11g1o28q57v4u.htm
Not sure it will work for you as it notes:
- The Java object is designed to call Java methods from SAS. The Java object is not intended to extend the SAS library of functions. Calling PROC FCMP functions is much more efficient for fast in-process extensions to the DATA step, especially when large data sets are involved. Using the Java object to perform this type of processing with large data sets takes significantly more time.
If you have the code, is FCMP an option for implementation instead of Java?
Otherwise you may need to consider CALL SYSTEM or XCMD if you have that enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Reeza,
Thank you for your response. I have seen similar response in the web and not sure of this works either. First of all I need to know if there is any plugins required to use Java in SAS, so I would install those and proceed from there. Also, SAS EG supports using Java program or no, I am not sure. we want to explore our options and make that work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
No "plug-ins" are required to use the SAS Java object. This object uses the private Java libraries that come as standard with SAS installations. If you want to use your own version of Java, then you would need to call it using OS-type commands using the method's mentioned by @Reeza .
EG connects to a SAS session where the SAS Java object is available and the ability to call OS-type commands including Java is possible.