<?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: SASPY connection issue to ODA (OnDemand for Academics) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955260#M42917</link>
    <description>&lt;P&gt;Why does the error message say utf-8 but the config file does not?&lt;/P&gt;
&lt;P&gt;Are you sure that you machine allows you to connect to that port on the ODA server? Perhaps your company firewall or your PC config is blocking that port?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 23:29:42 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-01-06T23:29:42Z</dc:date>
    <item>
      <title>SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955240#M42914</link>
      <description>&lt;P&gt;After careful research &amp;amp; troubleshooting, I have followed all the steps required to establish a SASPY connection to ODA (Ondemand for Academics) and I am still having trouble connecting.&amp;nbsp; I have already installed the SAS IOM encryption jars (&lt;A href="https://support.sas.com/downloads/package.htm?pid=2494" target="_blank" rel="nofollow noopener noreferrer"&gt;https://support.sas.com/downloads/package.htm?pid=2494&lt;/A&gt;) so that would eliminate the encryption as an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sascfg_personal.py&lt;/P&gt;&lt;PRE&gt;SAS_config_names=['oda']
oda = {'java' : 'C:\\Users\\rsheth\\Java\\jdk-23.0.1\\bin\\java.exe',
#US Home Region 2
'iomhost' : ['odaws01-usw2-2.oda.sas.com','odaws02-usw2-2.oda.sas.com'],
'iomport' : 8591,
'authkey' : 'oda',
'encoding' : 'windows-1252'
}&lt;/PRE&gt;&lt;P&gt;And below are the python commands I used to start the SAS session to ODA:&lt;/P&gt;&lt;PRE&gt;import pandas as pd
import saspy
sas=saspy.SASsession()&lt;/PRE&gt;&lt;P&gt;Now, I get the following error message:&lt;/P&gt;&lt;PRE&gt;Using SAS Config named: oda
We failed in getConnection


SAS process has terminated unexpectedly. RC from wait was: 4294967290

---------------------------------------------------------------------------
SASIOConnectionTerminated                 Traceback (most recent call last)
Cell In[1], line 3
      1 import pandas as pd
      2 import saspy
----&amp;gt; 3 sas=saspy.SASsession()

File ~\AppData\Local\anaconda3\Lib\site-packages\saspy\sasbase.py:594, in SASsession.__init__(self, **kwargs)
    592         raise SASIONotSupportedError(self.sascfg.mode, alts=['IOM'])
    593 elif self.sascfg.mode == 'IOM':
--&amp;gt; 594     self._io = SASsessionIOM(sascfgname=self.sascfg.name, sb=self, **kwargs)
    595 elif self.sascfg.mode == 'COM':
    596     self._io = SASSessionCOM(sascfgname=self.sascfg.name, sb=self, **kwargs)

File ~\AppData\Local\anaconda3\Lib\site-packages\saspy\sasioiom.py:317, in SASsessionIOM.__init__(self, **kwargs)
    314 self._tomods1 = b"_tomods1"
    315 self.sascfg   = SASconfigIOM(self, **kwargs)
--&amp;gt; 317 self._startsas()
    318 self._sb.reconuri = None

File ~\AppData\Local\anaconda3\Lib\site-packages\saspy\sasioiom.py:582, in SASsessionIOM._startsas(self)
    580 if enc == '':
    581    self.sascfg.encoding = 'utf-8'
--&amp;gt; 582 ll = self.submit("options svgtitle='svgtitle'; options validvarname=any validmemname=extend pagesize=max nosyntaxcheck; ods graphics on;", "text")
    583 self.sascfg.encoding = enc
    585 if self.pid is None:

File ~\AppData\Local\anaconda3\Lib\site-packages\saspy\sasioiom.py:988, in SASsessionIOM.submit(self, code, results, prompt, **kwargs)
    986    #return dict(LOG=log.decode(errors='replace'), LST='')
    987    logger.fatal(log.decode(errors='replace'))
--&amp;gt; 988    raise SASIOConnectionTerminated(Exception)
    989 except subprocess.TimeoutExpired:
    990    pass

SASIOConnectionTerminated: No SAS process attached. SAS process has terminated unexpectedly.
&amp;lt;class 'Exception'&amp;gt;&lt;/PRE&gt;&lt;P&gt;I would appreciate your assistance in troubleshooting and fixing the issue so that I can submit SAS code through python. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 20:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955240#M42914</guid>
      <dc:creator>kharvel</dc:creator>
      <dc:date>2025-01-06T20:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955243#M42915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/471914"&gt;@kharvel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;check this documentation link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#attn-as-of-saspy-version-3-3-3-the-classpath-is-no-longer-required-in-your-configuration-file" target="_blank"&gt;https://sassoftware.github.io/saspy/configuration.html#attn-as-of-saspy-version-3-3-3-the-classpath-is-no-longer-required-in-your-configuration-file&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This how to link:&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a text editor, we recommend you create two files:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"sascfg_personal.py"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"_authinfo"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955243#M42915</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2025-01-06T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955244#M42916</link>
      <description>&lt;P&gt;Hello AhmedAl_Attar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for responding.&amp;nbsp; I already used the documentation you linked to set up the saspy configuration (including the sascfg_personal.py and _authinfo).&amp;nbsp;&amp;nbsp; All of that appears to be set-up correctly.&amp;nbsp; The error does not appear to be related to the configuration set-up.&amp;nbsp; Do you have any insights into what the error messages are indicating?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955244#M42916</guid>
      <dc:creator>kharvel</dc:creator>
      <dc:date>2025-01-06T21:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955260#M42917</link>
      <description>&lt;P&gt;Why does the error message say utf-8 but the config file does not?&lt;/P&gt;
&lt;P&gt;Are you sure that you machine allows you to connect to that port on the ODA server? Perhaps your company firewall or your PC config is blocking that port?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 23:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955260#M42917</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-06T23:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955964#M42958</link>
      <description>&lt;P&gt;The firewall thought is a good one. What's strange is that for various failures I can cause, they all provide some error message between what you had:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;We failed in getConnection


SAS process has terminated unexpectedly. RC from wait was: 4294967290&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;for instance, providing the wrong machine name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; sas = saspy.SASsession(cfgname='oda', iomhost='bob')&lt;/P&gt;
&lt;P&gt;We failed in getConnection&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;The application could not log on to the server "bob:8591". The machine name is not valid.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SAS process has terminated unexpectedly. RC from wait was: 4294967290&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since there is no actual error message coming back, it's likely you aren't getting to the ODA system. Since you're failing where you are, it seems Java is valid and found and starting up. So, I think looking into something like 'you can't get there from here' is the next step. Can you connect to ODA using other means like studio or EG from the same client machine?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/955964#M42958</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2025-01-13T21:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956278#M42960</link>
      <description>&lt;P&gt;Hi, I do not have SAS Studio or SAS EG installed.&amp;nbsp; In fact, I don't have anything SAS installed on my machine.&amp;nbsp; The only thing installed is python, Anaconda, and saspy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am indeed behind a corporate firewall.&amp;nbsp; Would a restrictive firewall cause this issue?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 02:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956278#M42960</guid>
      <dc:creator>kharvel</dc:creator>
      <dc:date>2025-01-16T02:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956317#M42961</link>
      <description>&lt;P&gt;Yes, a firewall can cause that problem. Do you have a computer at home, or not behind the corporate firewall to just try? Or do you have IT that can help with that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 15:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956317#M42961</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2025-01-16T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956339#M42962</link>
      <description>&lt;P&gt;It would be worthwhile trying SODA via SAS Studio in your environment. This runs in a web browser so there is no installation required. If you have a firewall issue then SAS Studio will also fail but it might be easier to troubleshoot. If it does work, then you don't have a firewall issue and the problem is with the SASpy configuration.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 19:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/956339#M42962</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-01-16T19:17:16Z</dc:date>
    </item>
  </channel>
</rss>

