<?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 SASPY connection issue to ODA (OnDemand for Academics) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/954986#M372968</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&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"&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.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 01:57:17 GMT</pubDate>
    <dc:creator>kharvel</dc:creator>
    <dc:date>2025-01-03T01:57:17Z</dc:date>
    <item>
      <title>SASPY connection issue to ODA (OnDemand for Academics)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/954986#M372968</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&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"&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.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 01:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SASPY-connection-issue-to-ODA-OnDemand-for-Academics/m-p/954986#M372968</guid>
      <dc:creator>kharvel</dc:creator>
      <dc:date>2025-01-03T01:57:17Z</dc:date>
    </item>
  </channel>
</rss>

