<?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: SAS + Python/R Integration in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335533#M75965</link>
    <description>&lt;P&gt;I am not seeing the value - load to SAS, run Python, upload to DBMS? &amp;nbsp;Why not just use Python to load, check and upload to DBMS, or if you are moving to SAS, put the time in to do the migration. &amp;nbsp;Surely any time you spend maintaining multiple applications will mitigate migration costs (just thinking about validation of installs, updates, etc.).&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2017 08:59:58 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-02-24T08:59:58Z</dc:date>
    <item>
      <title>SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335525#M75961</link>
      <description>&lt;P&gt;I would like to consult expertise of the community regarding my plan if it would be feasible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1)&amp;nbsp;Load file to SAS&lt;/P&gt;&lt;P&gt;(2)&amp;nbsp;Call python/R to do some treatments on the SAS dataset&lt;/P&gt;&lt;P&gt;(3) Load SAS dataset to&amp;nbsp;RDBMS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If everything is on a sas script, will SAS&amp;nbsp;be able to capture if there are any failures in the pyhton script called?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Reason there's a python/R as there were previously built scripts to cleanse the data. While it can be done in SAS thru prxmatch,etc we don't want too waste much effort replacing a working one in python/R&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greatly appreciate your inputs and thoughts on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335525#M75961</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-02-24T08:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335526#M75962</link>
      <description>&lt;P&gt;not sure about python integration, but you can run R code in proc IML.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An introduction is given here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=rUaTTre24kI" target="_blank"&gt;https://www.youtube.com/watch?v=rUaTTre24kI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335526#M75962</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-02-24T08:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335531#M75964</link>
      <description>&lt;P&gt;Where does the data for step (1) come from? Do you read from the RDBMS, or from external data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My preferred method to communicate with other applications is to use a common file format and store the data there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I'd try to&lt;/P&gt;
&lt;P&gt;(after the data is in SAS)&lt;/P&gt;
&lt;P&gt;- write data to a file format suitable for the external application&lt;/P&gt;
&lt;P&gt;- run the external application from SAS (XCMD necessary), and catch the return code (suitable wrapper script for external app necessary)&lt;/P&gt;
&lt;P&gt;- if RC = 0, read the output back into SAS and transform for loading into the RDBMS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need additional SAS licensing, and the blueprint works for &lt;U&gt;any&lt;/U&gt; application that can be run from the commandline.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335531#M75964</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-24T08:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335533#M75965</link>
      <description>&lt;P&gt;I am not seeing the value - load to SAS, run Python, upload to DBMS? &amp;nbsp;Why not just use Python to load, check and upload to DBMS, or if you are moving to SAS, put the time in to do the migration. &amp;nbsp;Surely any time you spend maintaining multiple applications will mitigate migration costs (just thinking about validation of installs, updates, etc.).&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 08:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/335533#M75965</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-24T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/336828#M76397</link>
      <description>&lt;P&gt;Agree with you on this one as I was also trying to point out to the team that it's either go for python doing the processing and loading of file to dbms. Because loading back and forth to dbms using SAS will be time consuming&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 03:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/336828#M76397</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-03-01T03:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS + Python/R Integration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/336829#M76398</link>
      <description>&lt;P&gt;Thanks I have the same thing in mind in case they push for this approach. But I'm planning to have all the processing done in python as I don't have to let SAS read back and forth data in the dbms&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 03:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Python-R-Integration/m-p/336829#M76398</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2017-03-01T03:44:05Z</dc:date>
    </item>
  </channel>
</rss>

