BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I create a java object in one data step and would like to access it in another. Can someone tell me how to do this?

data _null_;

dcl javaobj rm(...);

run;

data _null_;
set dataset;
rm.callVoidmethod(...);
run;

Thanks.
6 REPLIES 6
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Have you looked at the SAS DOC on this topic?

Scott Barry
SBBWorks, Inc.

SAS(R) 9.2 Language Reference: Concepts - Using the Java Object
http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a003252712.htm
deleted_user
Not applicable
Yes, everything seems to be done in just one data step. I need help referencing a javaobj created in one data step but used in another.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
It's unclear what you want to accomplish in the two DATA steps, from my perspective. There are other technical references at the SAS support http://support.sas.com/ website -- consider using the Google advanced search argument below and hopefully you might find some suitable information for your question.

Scott Barry
SBBWorks, Inc.

Google advanced search: "java object" site:sas.com
deleted_user
Not applicable
I am working with multiple data sets that cannot be merged together and need to reference the same javaobj workspace. So I would need multiple data steps.
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest you open a track with SAS support for input/feedback.

Scott Barry
SBBWorks, Inc.

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!

How to Concatenate Values

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.

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
  • 6 replies
  • 872 views
  • 0 likes
  • 2 in conversation