DATA Step, Macro, Functions and more

Access a java object in created in one data step in another datastep

Reply
N/A
Posts: 0

Access a java object in created in one data step in another datastep

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Access a java object in created in one data step in another datastep

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
N/A
Posts: 0

Re: Access a java object in created in one data step in another datastep

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Access a java object in created in one data step in another datastep

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
N/A
Posts: 0

Re: Access a java object in created in one data step in another datastep

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.
Super Contributor
Super Contributor
Posts: 3,174

Re: Access a java object in created in one data step in another datastep

Suggest you open a track with SAS support for input/feedback.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: Access a java object in created in one data step in another datastep

Thanks.
Ask a Question
Discussion stats
  • 6 replies
  • 220 views
  • 0 likes
  • 2 in conversation