I am unable to connect to my CAS Server which is running on the host and port mentioned below.
sess = CAS(cashost, casport, useremail, userpassword)
I was trying to connect it from my local Python environment and it's giving these errors.
ERROR: The host name 'sasserver.demo.sas.com' could not be found.
SWATError :Could not connect to 'sasserver.demo.sas.com' on port 5570
@Sas_user1701 I believe that these trial environments run inside of firewall here and that you can't connect an external local client in this way. If you want to see what it's like to code with the Python APIs (or R, or SAS), we have a different SAS Viya Programming Trial that will provision a Jupyter Notebook environment for you.
I think we need a few more details for this. Is this environment actually hosted on the SAS demo environment, as your messages indicate? It might be that these ports are not open for connections from external clients.
Chris
Thanks for the Reply Chris. Yes I am using a SAS Data Preparation trial version and the CAS server is running on the specified port. Could you help me to check whether ports are open for connections from external client. Please see the attached pdf file for more details.
@Sas_user1701 I believe that these trial environments run inside of firewall here and that you can't connect an external local client in this way. If you want to see what it's like to code with the Python APIs (or R, or SAS), we have a different SAS Viya Programming Trial that will provision a Jupyter Notebook environment for you.
Thanks for the clarifications @ChrisHemedinger . I had already tried the Viya trial and it runs fine there.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.