<?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 python script in SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228641#M41326</link>
    <description>&lt;P&gt;we have a python script that should request a data from API call . my question can SAS EG trigger the paython script ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or can sas connect to API call and pull a data from it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2015 14:31:53 GMT</pubDate>
    <dc:creator>Moe_Issa</dc:creator>
    <dc:date>2015-10-06T14:31:53Z</dc:date>
    <item>
      <title>call python script in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228641#M41326</link>
      <description>&lt;P&gt;we have a python script that should request a data from API call . my question can SAS EG trigger the paython script ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or can sas connect to API call and pull a data from it ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 14:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228641#M41326</guid>
      <dc:creator>Moe_Issa</dc:creator>
      <dc:date>2015-10-06T14:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: call python script in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228674#M41328</link>
      <description>&lt;P&gt;You can use the X command to start a program outside of SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p11ba12uypvfazn1jk7acffuzlbl.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/68024/HTML/default/viewer.htm#p11ba12uypvfazn1jk7acffuzlbl.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your EG is using an object spawner then you will need to enable all SAS processes started with the object spawner the ability to use X commands by adding the option -ALLOWXCMD to the object spawner command. THIS CAN BE DANGEROUS. There are security risks associated with allowing system commands to be executed from a client application. Clients can use host commands to perform potentially harmful operations such as file deletion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could create .sas files with the SAS code from the EG project and use them in a batch or cron job. Something like&lt;/P&gt;
&lt;P&gt;sas -sysin sasJobsBeforePython.sas&lt;/P&gt;
&lt;P&gt;run python&lt;/P&gt;
&lt;P&gt;sas -sysin sasJobsAfterPython.sas&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And per&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19924"&gt;@FriedEgg&lt;/a&gt;, there are other ways to integrate Python and R into your SAS process:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Check out this open source offering from SAS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/sassoftware/enlighten-integration" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/sassoftware/enlighten-integration&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228674#M41328</guid>
      <dc:creator>michelle_delaurentis_sas_com</dc:creator>
      <dc:date>2017-09-05T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: call python script in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228675#M41329</link>
      <description>Check out this open source offering from SAS.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/sassoftware/enlighten-integration" target="_blank"&gt;https://github.com/sassoftware/enlighten-integration&lt;/A&gt;</description>
      <pubDate>Tue, 06 Oct 2015 17:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-python-script-in-SAS-EG/m-p/228675#M41329</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-10-06T17:05:04Z</dc:date>
    </item>
  </channel>
</rss>

