Hello everyone,
we are using some Java (jar) with our SAS programs and it works well (after some massive debugging).
Now we have to use two different classes from two different jars in the same data step.
How can I set the classpath?
Now we are using this: options set=CLASSPATH “mypath/myjava.jar
I need to use more Jars.
To do this, do I need to set some environment variables?
The SAS system is Viya 3.4.
Any help?
Do it have to be the same data step?
If so, does it have to be the same thread? Maybe function dosubl() would allow you to call a different JAR file and then return the the calling environment?
I'm thinking that I can try to set the classpath with all my jars at the start of the SAS program and not in every single macro where there are the parametric datastep that use the javaobjs.
In this way I will remove every conflict in the call of the classpath.
Also I will try the dosubl function.
What do you think about this issue?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.