<?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: can we operate/execute python code in sas tool in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/can-we-operate-execute-python-code-in-sas-tool/m-p/861037#M340125</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're on SAS Viya then you may want to read this Communities post about PROC PYTHON:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-PYTHON-to-augment-your-SAS-programs/ta-p/812397" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-PYTHON-to-augment-your-SAS-programs/ta-p/812397&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way of calling Python from SAS would be to look at Python Objects in PROC FCMP:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lecompobjref/p18qp136f91aaqn1h54v3b6pkant.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lecompobjref/p18qp136f91aaqn1h54v3b6pkant.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example screenshot with some code. It allows you to compile Python scripts as functions callable from SAS (e.g. data step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySnart_0-1677491038319.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80877i825D99FEB50740A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySnart_0-1677491038319.png" alt="HarrySnart_0-1677491038319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 09:44:32 GMT</pubDate>
    <dc:creator>HarrySnart</dc:creator>
    <dc:date>2023-02-27T09:44:32Z</dc:date>
    <item>
      <title>can we operate/execute python code in sas tool</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-operate-execute-python-code-in-sas-tool/m-p/861034#M340124</link>
      <description>&lt;P&gt;How to execute/operate python code in sas tool?&lt;BR /&gt;If we can please give one sample code.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 09:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-operate-execute-python-code-in-sas-tool/m-p/861034#M340124</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2023-02-27T09:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: can we operate/execute python code in sas tool</title>
      <link>https://communities.sas.com/t5/SAS-Programming/can-we-operate-execute-python-code-in-sas-tool/m-p/861037#M340125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're on SAS Viya then you may want to read this Communities post about PROC PYTHON:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-PYTHON-to-augment-your-SAS-programs/ta-p/812397" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Using-PROC-PYTHON-to-augment-your-SAS-programs/ta-p/812397&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way of calling Python from SAS would be to look at Python Objects in PROC FCMP:&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lecompobjref/p18qp136f91aaqn1h54v3b6pkant.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lecompobjref/p18qp136f91aaqn1h54v3b6pkant.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example screenshot with some code. It allows you to compile Python scripts as functions callable from SAS (e.g. data step)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HarrySnart_0-1677491038319.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80877i825D99FEB50740A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HarrySnart_0-1677491038319.png" alt="HarrySnart_0-1677491038319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 09:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/can-we-operate-execute-python-code-in-sas-tool/m-p/861037#M340125</guid>
      <dc:creator>HarrySnart</dc:creator>
      <dc:date>2023-02-27T09:44:32Z</dc:date>
    </item>
  </channel>
</rss>

