<?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: Issue while connecting SAS on Demand for Academics to Jupyter in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770736#M30910</link>
    <description>&lt;P&gt;Your config file has a syntax error in it.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;  File &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sascfg_personal.py"&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;, line &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;7&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;    Asia Pacific Home Region&lt;/SPAN&gt;
&lt;SPAN class="ansi-white-intense-fg ansi-bold"&gt;         ^&lt;/SPAN&gt;
&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;SyntaxError&lt;/SPAN&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;:&lt;/SPAN&gt; invalid syntax&lt;/PRE&gt;
&lt;P&gt;The instructions for configuring this are here:&amp;nbsp;&lt;A href="https://support.sas.com/ondemand/saspy.html" target="_blank"&gt;https://support.sas.com/ondemand/saspy.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The actual saspy config doc would be here:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#iom-using-java" target="_blank"&gt;https://sassoftware.github.io/saspy/configuration.html#iom-using-java&lt;/A&gt;&amp;nbsp;(the Remote case).&lt;/P&gt;
&lt;P&gt;Given the config file should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names=['oda']&lt;BR /&gt;
oda = {'java' : 'C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe',
       #US Home Region
       'iomhost' : ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
       #European Home Region
       #'iomhost' : ['odaws01-euw1.oda.sas.com','odaws02-euw1.oda.sas.com'],
       #Asia Pacific Home Region
       #'iomhost' : ['odaws01-apse1.oda.sas.com','odaws02-apse1.oda.sas.com'],
       'iomport' : 8591,
       'authkey' : 'oda',
       'encoding' : 'utf-8'
      }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you removed the comment from the comment line for the AP set of hosts. That's the Python syntax error you're getting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were trying to use the AP set of hosts, you should uncomment the 'iomhosts' line under that comment, and comment out the default 'iomhosts' up under the US Home region. So it would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names=['oda']

oda = {'java' : 'C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe',
       #US Home Region
       #'iomhost' : ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
       #European Home Region
       #'iomhost' : ['odaws01-euw1.oda.sas.com','odaws02-euw1.oda.sas.com'],
       #Asia Pacific Home Region
       'iomhost' : ['odaws01-apse1.oda.sas.com','odaws02-apse1.oda.sas.com'],
       'iomport' : 8591,
       'authkey' : 'oda',
       'encoding' : 'utf-8'
      }&lt;/PRE&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Mon, 27 Sep 2021 19:19:51 GMT</pubDate>
    <dc:creator>sastpw</dc:creator>
    <dc:date>2021-09-27T19:19:51Z</dc:date>
    <item>
      <title>Issue while connecting SAS on Demand for Academics to Jupyter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770422#M30869</link>
      <description>&lt;P&gt;I am facing trouble using SAS on demand for academics in Jupyter. It worked initially but with a new session i am getting below stated error. I reinstalled anaconda, but couldnt eastablish connection&lt;/P&gt;&lt;PRE&gt;Traceback &lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;(most recent call last)&lt;/SPAN&gt;:

  File &lt;SPAN class="ansi-green-fg"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\IPython\core\interactiveshell.py"&lt;/SPAN&gt;, line &lt;SPAN class="ansi-green-fg"&gt;3441&lt;/SPAN&gt;, in &lt;SPAN class="ansi-magenta-fg"&gt;run_code&lt;/SPAN&gt;
    exec(code_obj, self.user_global_ns, self.user_ns)

  File &lt;SPAN class="ansi-green-fg"&gt;"C:\Users\SAMPATH\AppData\Local\Temp/ipykernel_15784/1555024843.py"&lt;/SPAN&gt;, line &lt;SPAN class="ansi-green-fg"&gt;2&lt;/SPAN&gt;, in &lt;SPAN class="ansi-magenta-fg"&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;
    sas_session = saspy.SASsession()

  File &lt;SPAN class="ansi-green-fg"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sasbase.py"&lt;/SPAN&gt;, line &lt;SPAN class="ansi-green-fg"&gt;494&lt;/SPAN&gt;, in &lt;SPAN class="ansi-magenta-fg"&gt;__init__&lt;/SPAN&gt;
    self.sascfg            = SASconfig(**kwargs)

  File &lt;SPAN class="ansi-green-fg"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sasbase.py"&lt;/SPAN&gt;, line &lt;SPAN class="ansi-green-fg"&gt;130&lt;/SPAN&gt;, in &lt;SPAN class="ansi-magenta-fg"&gt;__init__&lt;/SPAN&gt;
    SAScfg = self._find_config(cfg_override=kwargs.get('cfgfile'))

&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;  File &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sasbase.py"&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;, line &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;328&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;, in &lt;/SPAN&gt;&lt;SPAN class="ansi-magenta-intense-fg ansi-bold"&gt;_find_config&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;    import sascfg_personal as SAScfg&lt;/SPAN&gt;

&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;  File &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sascfg_personal.py"&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;, line &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;7&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;    Asia Pacific Home Region&lt;/SPAN&gt;
&lt;SPAN class="ansi-white-intense-fg ansi-bold"&gt;         ^&lt;/SPAN&gt;
&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;SyntaxError&lt;/SPAN&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;:&lt;/SPAN&gt; invalid syntax&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 16:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770422#M30869</guid>
      <dc:creator>agrisampath</dc:creator>
      <dc:date>2021-09-25T16:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while connecting SAS on Demand for Academics to Jupyter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770641#M30908</link>
      <description>&lt;P&gt;This resource may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-configure-access-to-SAS-OnDemand-for-Academics-in-Jupyter/td-p/750767" target="_blank"&gt;https://communities.sas.com/t5/SAS-Software-for-Learning/How-to-configure-access-to-SAS-OnDemand-for-Academics-in-Jupyter/td-p/750767&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 13:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770641#M30908</guid>
      <dc:creator>SAS_Cares</dc:creator>
      <dc:date>2021-09-27T13:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while connecting SAS on Demand for Academics to Jupyter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770736#M30910</link>
      <description>&lt;P&gt;Your config file has a syntax error in it.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;  File &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;"C:\Users\SAMPATH\anaconda3\envs\SAS\lib\site-packages\saspy\sascfg_personal.py"&lt;/SPAN&gt;&lt;SPAN class="ansi-cyan-intense-fg ansi-bold"&gt;, line &lt;/SPAN&gt;&lt;SPAN class="ansi-green-intense-fg ansi-bold"&gt;7&lt;/SPAN&gt;
&lt;SPAN class="ansi-yellow-intense-fg ansi-bold"&gt;    Asia Pacific Home Region&lt;/SPAN&gt;
&lt;SPAN class="ansi-white-intense-fg ansi-bold"&gt;         ^&lt;/SPAN&gt;
&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;SyntaxError&lt;/SPAN&gt;&lt;SPAN class="ansi-red-intense-fg ansi-bold"&gt;:&lt;/SPAN&gt; invalid syntax&lt;/PRE&gt;
&lt;P&gt;The instructions for configuring this are here:&amp;nbsp;&lt;A href="https://support.sas.com/ondemand/saspy.html" target="_blank"&gt;https://support.sas.com/ondemand/saspy.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The actual saspy config doc would be here:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#iom-using-java" target="_blank"&gt;https://sassoftware.github.io/saspy/configuration.html#iom-using-java&lt;/A&gt;&amp;nbsp;(the Remote case).&lt;/P&gt;
&lt;P&gt;Given the config file should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names=['oda']&lt;BR /&gt;
oda = {'java' : 'C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe',
       #US Home Region
       'iomhost' : ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
       #European Home Region
       #'iomhost' : ['odaws01-euw1.oda.sas.com','odaws02-euw1.oda.sas.com'],
       #Asia Pacific Home Region
       #'iomhost' : ['odaws01-apse1.oda.sas.com','odaws02-apse1.oda.sas.com'],
       'iomport' : 8591,
       'authkey' : 'oda',
       'encoding' : 'utf-8'
      }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you removed the comment from the comment line for the AP set of hosts. That's the Python syntax error you're getting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you were trying to use the AP set of hosts, you should uncomment the 'iomhosts' line under that comment, and comment out the default 'iomhosts' up under the US Home region. So it would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SAS_config_names=['oda']

oda = {'java' : 'C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath\\java.exe',
       #US Home Region
       #'iomhost' : ['odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
       #European Home Region
       #'iomhost' : ['odaws01-euw1.oda.sas.com','odaws02-euw1.oda.sas.com'],
       #Asia Pacific Home Region
       'iomhost' : ['odaws01-apse1.oda.sas.com','odaws02-apse1.oda.sas.com'],
       'iomport' : 8591,
       'authkey' : 'oda',
       'encoding' : 'utf-8'
      }&lt;/PRE&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/770736#M30910</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2021-09-27T19:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while connecting SAS on Demand for Academics to Jupyter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/772180#M31036</link>
      <description>&lt;P&gt;Did you fix your config file? Are you connected now?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 14:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Issue-while-connecting-SAS-on-Demand-for-Academics-to-Jupyter/m-p/772180#M31036</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2021-10-05T14:46:25Z</dc:date>
    </item>
  </channel>
</rss>

