<?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 Running an external function ( Java/C#) from SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787388#M251581</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;It is possible to run an external C function from SAS (&lt;A href="https://support.sas.com/kb/40/562.html" target="_blank"&gt;https://support.sas.com/kb/40/562.html&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;I have a similar scenario in which I invoke a java jar file from SAS using x commands.&lt;/P&gt;
&lt;P&gt;I was wondering if it is possible to use a jar as shown below :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* From https://support.sas.com/kb/40/562.html for a C language dll)
proc proto stdcall package=work.proto_ds.cfcns;
  link 'c:\temp\myfactorial.dll';
  int myfactorial(int n) ;
run;
/* What I am looking to do is something like this */
proc proto stdcall package=work.proto_ds.cfcns;
  link 'c:\temp\myfactorial.jar';
  int myfactorial(int n) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if somebody has attempted something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Dec 2021 13:49:07 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-12-25T13:49:07Z</dc:date>
    <item>
      <title>Running an external function ( Java/C#) from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787388#M251581</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;It is possible to run an external C function from SAS (&lt;A href="https://support.sas.com/kb/40/562.html" target="_blank"&gt;https://support.sas.com/kb/40/562.html&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;I have a similar scenario in which I invoke a java jar file from SAS using x commands.&lt;/P&gt;
&lt;P&gt;I was wondering if it is possible to use a jar as shown below :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* From https://support.sas.com/kb/40/562.html for a C language dll)
proc proto stdcall package=work.proto_ds.cfcns;
  link 'c:\temp\myfactorial.dll';
  int myfactorial(int n) ;
run;
/* What I am looking to do is something like this */
proc proto stdcall package=work.proto_ds.cfcns;
  link 'c:\temp\myfactorial.jar';
  int myfactorial(int n) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Wondering if somebody has attempted something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Dec 2021 13:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787388#M251581</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-12-25T13:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running an external function ( Java/C#) from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787397#M251588</link>
      <description>&lt;P&gt;Only C and C++ are mentioned in the SAS documentation for &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1jf5h9yke0z6vn1ms72os57u1qg.htm" target="_blank" rel="noopener"&gt;PROTO&lt;/A&gt; and this functionally appears to go back at least to SAS 9.2 and doesn't look like it has changed much since then. I'm wondering if its a side-benefit from SAS being written in C. I doubt that PROTO goes beyond what the documentation says. Maybe there are alternative ways of adding Java functions.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Dec 2021 21:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787397#M251588</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-12-25T21:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running an external function ( Java/C#) from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787435#M251603</link>
      <description>&lt;P&gt;You can't use proc proto, but you can use java objects in a data step, have a look at &lt;A href="https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/lecompobjref/n186ts6janpgypn1k6dldyuh3xqs.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.4/lecompobjref/n186ts6janpgypn1k6dldyuh3xqs.htm&lt;/A&gt; for details.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 08:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787435#M251603</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-12-27T08:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running an external function ( Java/C#) from SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787447#M251611</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;for the response.&lt;BR /&gt;My intention was to enhance the capability of the SAS program using custom functions.&lt;BR /&gt;Unfortunately using the java object does not serve the purpose.&lt;BR /&gt;Looks like C/C++ is my only option.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 12:29:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-an-external-function-Java-C-from-SAS/m-p/787447#M251611</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-12-27T12:29:27Z</dc:date>
    </item>
  </channel>
</rss>

