<?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: proc python - optimisation in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893227#M10592</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;I would be interested to know if there is an option to let you see the CAS action code that was generated (either by PROC PYTHON or from SAS code).&amp;nbsp; That would be interesting to explore.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;When using CAS-enabled procedures&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;the CAS option &lt;STRONG&gt;LISTHISTORY&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;will display the CASL actions in the SAS Log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Print all of the actions that were executed in the current session:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragmentLast  language-sas"&gt;&lt;CODE&gt;cas casauto listhistory _all_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Print the last 5 actions that were executed in the current session:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragmentLast  language-sas"&gt;&lt;CODE&gt;cas casauto listhistory 5;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 20:41:06 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-09-07T20:41:06Z</dc:date>
    <item>
      <title>proc python - optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893195#M10590</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have recently discovered the existence of &lt;STRONG&gt;proc python&lt;/STRONG&gt;. I did some tests to see if writing in pure sas is more convient than proc python, in terms of time.&lt;BR /&gt;I wanted to understand how proc python works: does sas internally translate python language into sas language?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 17:57:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893195#M10590</guid>
      <dc:creator>gcapo94</dc:creator>
      <dc:date>2023-09-07T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc python - optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893199#M10591</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE: What I wrote below is indeed completely wrong.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I was thinking about how I think SWAT (&lt;A href="https://developer.sas.com/guides/python-swat.html" target="_blank"&gt;https://developer.sas.com/guides/python-swat.html&lt;/A&gt;) works.&amp;nbsp; So writing python code, and having it run on CAS.&amp;nbsp; But that's the opposite of PROC PYTHON (writing SAS code, including python code that will run 'on' python).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;____&lt;/P&gt;
&lt;P&gt;Here's my understanding (may be wrong!).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use PROC PYTHON on Viya I think it gets translated into CAS actions.&amp;nbsp; (maybe that means CASL code?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similarly when you run SAS code on Viya it is also (I think) translated into CAS actions (unless it runs on the SAS 9 compute engine).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be interested to know if there is an option to let you see the CAS action code that was generated (either by PROC PYTHON or from SAS code).&amp;nbsp; That would be interesting to explore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In terms of efficiency, it would be a fun thing to test, and if you do, please consider writing up a post (and/or user group paper) with your results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Found a good CASL paper, which discusses python-&amp;gt;CASL, but not specifically PROC PYTHON.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings19/3040-2019.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings19/3040-2019.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 21:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893199#M10591</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-09-07T21:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc python - optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893227#M10592</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;I would be interested to know if there is an option to let you see the CAS action code that was generated (either by PROC PYTHON or from SAS code).&amp;nbsp; That would be interesting to explore.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;When using CAS-enabled procedures&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;the CAS option &lt;STRONG&gt;LISTHISTORY&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;will display the CASL actions in the SAS Log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Print all of the actions that were executed in the current session:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragmentLast  language-sas"&gt;&lt;CODE&gt;cas casauto listhistory _all_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Print the last 5 actions that were executed in the current session:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="xisDoc-codeFragmentLast  language-sas"&gt;&lt;CODE&gt;cas casauto listhistory 5;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893227#M10592</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-07T20:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: proc python - optimisation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893232#M10593</link>
      <description>&lt;P&gt;How &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_042/proc/p1m1pc8yl1crtkn165q2d4njnip1.htm" target="_blank" rel="noopener"&gt;PROC PYTHON&lt;/A&gt; works is described in the documentation. When you run Python code inside the PROC, SAS passes this to a Python deployment installed alongside Viya.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/proc-python-optimisation/m-p/893232#M10593</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-07T20:51:46Z</dc:date>
    </item>
  </channel>
</rss>

