<?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 call compiled c script using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325672#M271446</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to call a compiled c program using SAS. The c script was compiled using VS. Does anyone know how to do that? so that I can execute the c syntax in a do loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 14:09:52 GMT</pubDate>
    <dc:creator>Gfish</dc:creator>
    <dc:date>2017-01-18T14:09:52Z</dc:date>
    <item>
      <title>call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325672#M271446</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to call a compiled c program using SAS. The c script was compiled using VS. Does anyone know how to do that? so that I can execute the c syntax in a do loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325672#M271446</guid>
      <dc:creator>Gfish</dc:creator>
      <dc:date>2017-01-18T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325674#M271447</link>
      <description>&lt;P&gt;%SYSEXEC()&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#n08ecabbpebv2xn13ieu8uylrohm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/69726/HTML/default/viewer.htm#n08ecabbpebv2xn13ieu8uylrohm.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or as a SAS function&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/562.html" target="_blank"&gt;http://support.sas.com/kb/40/562.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325674#M271447</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-18T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325679#M271448</link>
      <description>&lt;P&gt;This compiled program, is it compiled to an EXE? &amp;nbsp;If so then you call that via your OS using X command or %sysfunc(). &amp;nbsp;If its compiled to something else, a DLL or something then it will be different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325679#M271448</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-18T14:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325685#M271449</link>
      <description>&lt;P&gt;If it is something you can call from the commandline, you can use it as argument in a &lt;FONT face="courier new,courier"&gt;system()&lt;/FONT&gt; function call or in the &lt;FONT face="courier new,courier"&gt;call system()&lt;/FONT&gt; subroutine in a data step.&lt;/P&gt;
&lt;P&gt;Caveat: you cannot run an executable on your desktop from SAS code that runs on a remote workspace server (SAS Studio or Enterprise Guide with a remote SAS server).&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/325685#M271449</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-18T14:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/326491#M271450</link>
      <description>I regret the passing of my access to SAS on z/os.&lt;BR /&gt;Running pre-compiled programs worked so neatly.&lt;BR /&gt;&lt;BR /&gt;PROC FTP ;&lt;BR /&gt;RUN ;&lt;BR /&gt;Replacing FTP with the relevant program name.&lt;BR /&gt;&lt;BR /&gt;Ok that program had to be able to be found in one of the paths that the op.sys would search.&lt;BR /&gt;Given that, input and output files also needed to be pre-assigned with FILENAME statements.&lt;BR /&gt;Integration with SAS was so good you would imagine this program was a part of SAS - system messages appearing in the SASlog along with a NOTE: like&lt;BR /&gt;NOTE: Procedure FTP completed.&lt;BR /&gt;&lt;BR /&gt;The system option NOPROC was supposed to disable this simple flexibility but somehow it was never switched on .&lt;BR /&gt;&lt;BR /&gt;different days&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 21 Jan 2017 08:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/326491#M271450</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-01-21T08:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/326493#M271451</link>
      <description>&lt;P&gt;To catch the output from external commands to the SAS log, use filename pipe:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "command 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Jan 2017 11:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/326493#M271451</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-21T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: call compiled c script using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/329545#M271452</link>
      <description>&lt;P&gt;It's compiled as an EXE and called by SAS for execution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realized that there are other options for compiling the script file such as DLL, and the DLL can be used by SAS with combination to Proc FTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of options...for a newbie to C and VS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 20:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-compiled-c-script-using-SAS/m-p/329545#M271452</guid>
      <dc:creator>Gfish</dc:creator>
      <dc:date>2017-02-02T20:02:26Z</dc:date>
    </item>
  </channel>
</rss>

