<?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: Error when trying to use python code in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746085#M234008</link>
    <description>&lt;P&gt;9.03.01M1P110211&lt;/P&gt;</description>
    <pubDate>Sun, 06 Jun 2021 12:15:49 GMT</pubDate>
    <dc:creator>kashlik123</dc:creator>
    <dc:date>2021-06-06T12:15:49Z</dc:date>
    <item>
      <title>Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746070#M234001</link>
      <description>&lt;P&gt;I want to run a python file from SAS EG using the PROC FCMP procedure, however declaring the python object&amp;nbsp; SAS gives me a syntax error even on the most basic component (see below):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fcmp;
declare object py(python);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Running this gives me the following errors:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Writing HTML(EGHTML) Body file: EGHTML
27         
28         
29         proc fcmp;
30         declare object py(python);
                   ______
                   22
                   76
ERROR 22-322: Syntax error, expecting one of the following: HASH, HITER.  
ERROR 76-322: Syntax error, statement will be ignored.
31         run;

NOTE: Execution aborted because of errors in program.
      Reenter the corrected program or enter "QUIT;" to exit procedure.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can anyone please help&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 08:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746070#M234001</guid>
      <dc:creator>kashlik123</dc:creator>
      <dc:date>2021-06-06T08:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746073#M234002</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366382"&gt;@kashlik123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just an idea:&amp;nbsp;Calling Phyton functions from FCMP came with 9.4 M6, so it wouldn't work in M5 or older.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 09:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746073#M234002</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2021-06-06T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746074#M234003</link>
      <description>&lt;P&gt;Run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;sysvlong;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and post the log.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 09:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746074#M234003</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-06T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746085#M234008</link>
      <description>&lt;P&gt;9.03.01M1P110211&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 12:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746085#M234008</guid>
      <dc:creator>kashlik123</dc:creator>
      <dc:date>2021-06-06T12:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746087#M234010</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366382"&gt;@kashlik123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;9.03.01M1P110211&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That is SAS 9.3 and way before any of the Python stuff is available&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 12:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746087#M234010</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-06T12:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746089#M234012</link>
      <description>&lt;P&gt;I tried running the same code on a different server with SAS 9.4. Here are the results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;30         %put &amp;amp;sysvlong;
9.04.01M3P062415
31         


32         proc fcmp;
33         declare object py(python);
ERROR: Object type 'python' not found for object creation.
34         quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any idea what might cause this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 13:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746089#M234012</guid>
      <dc:creator>kashlik123</dc:creator>
      <dc:date>2021-06-06T13:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746090#M234013</link>
      <description>&lt;P&gt;M3 means maintenance level 3, so still too old. Current ML is 9.4M7.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 13:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746090#M234013</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-06T13:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to use python code in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746096#M234015</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366382"&gt;@kashlik123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried running the same code on a different server with SAS 9.4. Here are the results:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;30         %put &amp;amp;sysvlong;
9.04.01M3P062415
31         


32         proc fcmp;
33         declare object py(python);
ERROR: Object type 'python' not found for object creation.
34         quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any idea what might cause this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You are using a 10 year old version of SAS.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/08/02/how-old-is-your-version-of-sas-release-dates-for-sas-software.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 15:43:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-trying-to-use-python-code-in-sas/m-p/746096#M234015</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-06T15:43:16Z</dc:date>
    </item>
  </channel>
</rss>

