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
Java code - try JavaObj.
Not sure it will work for you as it notes:
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.
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.
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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.