import saspy
fd = open(saspy.SAScfg)
cfg = fd.read()
fd.close()
print(cfg)import saspy
saspy
saspy.list_configs()
saspy.SAScfg
sas = saspy.SASsession()
sas---------------------------------------------------------------------------
SASIOConnectionError                      Traceback (most recent call last)
Cell In[5], line 5
      3 saspy.list_configs()
      4 saspy.SAScfg
----> 5 sas = saspy.SASsession()
      6 sas
File ~/Library/Python/3.9/lib/python/site-packages/saspy/sasbase.py:608, in SASsession.__init__(self, **kwargs)
    605    pass
    607 if failed:
--> 608    raise SASIOConnectionError(res)
    610 if self.pyenc is not None:
    611    if self._io.sascfg.encoding != '':
SASIOConnectionError: Failure establishing SASsession.
 No SAS process attached. SAS process has terminated unexpectedly.Were you able to connect? Sorry that was a terse reply, I was on vacation and just typing in on my phone. ODA recently upgraded their SAS deployments to 9.4M7, and M7 had some change in it that requires the encryption jars, which we can't put on github, thus having to make uses add them to the deployments manually. At least for ODA, where users don't have a deployment with the jars in it, you can just download them from the link in that SASPy doc. Hopefully you're up and running?
Thanks,
Tom
Were you able to connect? Sorry that was a terse reply, I was on vacation and just typing in on my phone. ODA recently upgraded their SAS deployments to 9.4M7, and M7 had some change in it that requires the encryption jars, which we can't put on github, thus having to make uses add them to the deployments manually. At least for ODA, where users don't have a deployment with the jars in it, you can just download them from the link in that SASPy doc. Hopefully you're up and running?
Thanks,
Tom
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
