<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java application passing objects to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377244#M276592</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153780"&gt;@Cassidamius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To take a step back, what SAS component are you looking to use? Is it some SAS Foundation based programs that previously worked in batch, or is it one of the newer solutions that uses something like ESP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways of designing a solution such as the one you're talking about, and while there are a few hacky ways that allow SAS foundation to process streaming data (named pipes etc), it's not really the ideal solution. Some level of caching will always need to be done somewhere. The&amp;nbsp;ultimate design will be highly dependent on the component that's been passed on to you, so if you're able to share more detail on it, we'll be able to give you a more detailed answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 11:06:32 GMT</pubDate>
    <dc:creator>boemskats</dc:creator>
    <dc:date>2017-07-19T11:06:32Z</dc:date>
    <item>
      <title>Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/376155#M276590</link>
      <description>&lt;P&gt;I am a Java developer streaming data through a Java application and need to pass the data objects to a SAS module. Because we have a streaming architecture, we would like to avoid writing out any files. Is it possible to pass an object in Java directly to a DATASTEP in SAS? This will be live streaming data that does not exist in any database. The SAS module that I need to pass my data to is provided by the federal government in support of a national program affecting payments to healthcare providers. So, I cannot port the code from SAS to another programming language. This module was written to process data in batch, but we are moving away from a batch model to a streaming model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything I am reading about SAS javaobj seems to indicate that it only works in the opposite direction-- instantiating a javaobj and then executing in Java.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any Java developers out there who have experience with a similar project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 20:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/376155#M276590</guid>
      <dc:creator>Cassidamius</dc:creator>
      <dc:date>2017-07-14T20:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377233#M276591</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153780"&gt;@Cassidamius&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you left me a private message with a similar question. I will leave here my answer to you, in case that it might help others with similar questions, or the Java-bright minds ( as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46760"&gt;@boemskats&lt;/a&gt;) here would want to add information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With java you can pass objects only to classes who have the interface for the class of that object. if this interface is not created, they cannot communicate, as you might well know. So SAS documents its API so you can use their objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if this interface is not created in the java code within SAS, you cannot bring in an object that, for SAS will be undetermined, unless SAS does revert engeneering, which no program does at this moment, as far as I know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you want to send a message to SAS, I am sure the APi will give you the framework where you can send the required message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can review the documentation at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/itechjcdg/61499/PDF/default/itechjcdg.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/itechjcdg/61499/PDF/default/itechjcdg.pdf&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/omaref/59983/HTML/default/viewer.htm#jomaconcepts.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/omaref/59983/HTML/default/viewer.htm#jomaconcepts.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, to answer your question, instead of looking the information within Java, probably you should look for it within the SAS statements (datalines and cards options in the infile statement)::&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/lgref/z0188182.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/lgref/z0188182.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi29/253-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/253-29.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p1a4qnhappx8wqn1xf6pi28ll2hh.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p1a4qnhappx8wqn1xf6pi28ll2hh.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146292.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146292.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645725.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645725.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 10:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377233#M276591</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2017-07-19T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377244#M276592</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153780"&gt;@Cassidamius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To take a step back, what SAS component are you looking to use? Is it some SAS Foundation based programs that previously worked in batch, or is it one of the newer solutions that uses something like ESP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways of designing a solution such as the one you're talking about, and while there are a few hacky ways that allow SAS foundation to process streaming data (named pipes etc), it's not really the ideal solution. Some level of caching will always need to be done somewhere. The&amp;nbsp;ultimate design will be highly dependent on the component that's been passed on to you, so if you're able to share more detail on it, we'll be able to give you a more detailed answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377244#M276592</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2017-07-19T11:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377245#M276593</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153780"&gt;@Cassidamius&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;... The SAS module that I need to pass my data to is provided by the federal government ...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you explain what this "sas module" is? A stored process, a web service?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 11:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377245#M276593</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-07-19T11:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377674#M276594</link>
      <description>Have a look at at the google search result:&lt;BR /&gt;&lt;BR /&gt;Using DATA Step Component Objects: Using the Java Object - SAS Support&lt;BR /&gt;support.sas.com › lrcon › HTML › default&lt;BR /&gt;Using the Java Object. The Java object provides a mechanism that is similar to the Java Native Interface (JNI) for instantiating Java classes and accessing fields and methods on the resultant objects. You can create hybrid applications that contain both Java and DATA step code.&lt;BR /&gt;&lt;BR /&gt;To this url:&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003252712.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003252712.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It is for SAS9.2 so expect improvements to be available</description>
      <pubDate>Thu, 20 Jul 2017 08:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377674#M276594</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-07-20T08:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377878#M276595</link>
      <description>By "sas module", I was referring to a software program provided by a federal government agency written in SAS. It is a very simple program that, I believe, only requires Base SAS to run. We've been running various versions of this module for a number of years on SAS in a Linux server. Now, our goal is to stream our inputs to the service, rather than provide batched inputs.</description>
      <pubDate>Thu, 20 Jul 2017 18:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377878#M276595</guid>
      <dc:creator>Cassidamius</dc:creator>
      <dc:date>2017-07-20T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Java application passing objects to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377960#M276596</link>
      <description>I believed that is intended to be solved by&lt;BR /&gt; DATA Step Component Objects: Using the Java Object</description>
      <pubDate>Thu, 20 Jul 2017 22:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Java-application-passing-objects-to-SAS/m-p/377960#M276596</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-07-20T22:46:57Z</dc:date>
    </item>
  </channel>
</rss>

