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.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1446 views
  • 0 likes
  • 2 in conversation