BookmarkSubscribeRSS Feed
oussama1302
Calcite | Level 5

I just made an OnDemand for Academics account to use sas on Python and I couldn't find my hostname and port to create a connection to the CAS server.

 

I tried to use this, but I get an error:

 

conn = swat.CAS('odaws01-euw1.oda.sas.com', 5570)
ERROR: The TCP/IP tcpSockConnect support routine failed with error 10060 (The connection has timed out.).
ERROR: Failed to connect to host 'odaws01-euw1.oda.sas.com', port 5570.

 

1 REPLY 1
sastpw
SAS Employee

The connection you are trying to make is using SWAT, not SASPy. That would be the reason for the error. SWAT connect to CAS, whereas SASPy connect to SAS. The SAS ODA servers are SAS servers, so using SASPy would be the way to connect to them from Python.

The config doc for saspy is here: https://sassoftware.github.io/saspy/configuration.html and for ODA, the specific config would use IOM access method Remote: https://sassoftware.github.io/saspy/configuration.html#remote

The specific config doc for ODA access from saspy, with the hosts and port, ... is here: https://support.sas.com/ondemand/saspy.html

Tom

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1453 views
  • 0 likes
  • 2 in conversation