<?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: Call SAS directly from Perl script (Windows) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134588#M27331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Windows, you can use the integration technologies client com interfaces to interact with a local sas installation (even if you do not license integration technologies).&amp;nbsp; I may not be a necessary level of integration for you, especially given the presumption that you are a perl novice.&amp;nbsp; To call SAS directly from perl use the system command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://perldoc.perl.org/functions/system.html" style="font-size: 10pt; line-height: 1.5em;" title="http://perldoc.perl.org/functions/system.html"&gt;system - perldoc.perl.org&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14024311304177455" jivemacro_uid="_14024311304177455" modifiedtitle="true"&gt;
&lt;P&gt;@args = ("C:/path/to/sas.exe", "sysin C:/path/to/code.sas");&lt;/P&gt;
&lt;P&gt;system(@args) == 0 or die "oops\n"&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2014 20:14:39 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2014-06-10T20:14:39Z</dc:date>
    <item>
      <title>Call SAS directly from Perl script (Windows)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134584#M27327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a SAS program directly from a perl script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been able to call a .bat file which successfully runs the job, but would prefer to be able to execute the job directly from perl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134584#M27327</guid>
      <dc:creator>Jim_Hayes</dc:creator>
      <dc:date>2014-06-09T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Call SAS directly from Perl script (Windows)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134585#M27328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not familiar with Perl, however if you can call a .bat file, then presumably you can access the command line via the same method.&amp;nbsp; You would need to execute via command line something along the lines of&lt;/P&gt;&lt;P&gt;...\sas 9.2\sas.exe your_sas_script.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAS.EXE is the main executable which will open and compile the sas program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 14:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134585#M27328</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-06-09T14:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Call SAS directly from Perl script (Windows)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134586#M27329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was my first attempt.&amp;nbsp; but it failed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 15:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134586#M27329</guid>
      <dc:creator>Jim_Hayes</dc:creator>
      <dc:date>2014-06-09T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Call SAS directly from Perl script (Windows)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134587#M27330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you test your SAS command first from a Windows command line. Once you have it working you can paste it into your Perl program. Also check out the SAS command documentation and try the -sysin option as well: ...\sas.exe -sysin mysasprog,sas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 19:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134587#M27330</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-06-10T19:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Call SAS directly from Perl script (Windows)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134588#M27331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Windows, you can use the integration technologies client com interfaces to interact with a local sas installation (even if you do not license integration technologies).&amp;nbsp; I may not be a necessary level of integration for you, especially given the presumption that you are a perl novice.&amp;nbsp; To call SAS directly from perl use the system command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://perldoc.perl.org/functions/system.html" style="font-size: 10pt; line-height: 1.5em;" title="http://perldoc.perl.org/functions/system.html"&gt;system - perldoc.perl.org&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14024311304177455" jivemacro_uid="_14024311304177455" modifiedtitle="true"&gt;
&lt;P&gt;@args = ("C:/path/to/sas.exe", "sysin C:/path/to/code.sas");&lt;/P&gt;
&lt;P&gt;system(@args) == 0 or die "oops\n"&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 20:14:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-SAS-directly-from-Perl-script-Windows/m-p/134588#M27331</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2014-06-10T20:14:39Z</dc:date>
    </item>
  </channel>
</rss>

