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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 832 views
  • 0 likes
  • 2 in conversation