BookmarkSubscribeRSS Feed
a20121248
Obsidian | Level 7

Hi experts:

I have SAS Viya 3.5 and I want to connect to the CAS server through my local Python client using SWAT. I usually connect through SAS Studio using a URL, so I'm not sure if it is possible to connect from my local computer or is it a must to have Jupyter/Python client installed in the SAS Viya server?.

 

In SAS Studio, I was able to find to following parameters for host and port (please let me know if this assumption is right):

a20121248_1-1678995571642.png

 

The problem is when I try to connect in Python, I've got the following error:

a20121248_2-1678995730538.png

 

Is it possible to connect from my local Python in Windows? or am I missing something?

 

Best regards,

Javier

1 REPLY 1
gwootton
SAS Super FREQ
It is possible to connect from Python to CAS using SWAT, but you need to have a path to the server / port you are trying to connect to. You may want to try using the Test-NetConnection cmdlet to confirm you have a network path:

Test-NetConnection cas.example.com -port 5570
--
Greg Wootton | Principal Systems Technical Support Engineer

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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