BookmarkSubscribeRSS Feed
Riya88
Fluorite | Level 6
 I am trying to run sas on Google Colab. I am using the following code -

 

import saspy
saspy.SAScfg
saspy.list_configs()

 

sas = saspy.SASsession(cfgfile='/usr/local/lib/python3.6/dist-packages/saspy/sascfg.py')
 
 It throws this error - 
Using SAS Config named: default The OS Error was: No such file or directory SAS Connection failed. No connection established. Double check your settings in sascfg_personal.py file. Attempted to run program /opt/sasinside/SASHome/SASFoundation/9.4/bin/sas_u8 with the following parameters:['/opt/sasinside/SASHome/SASFoundation/9.4/bin/sas_u8', '-nodms', '-stdio', '-terminal', '-nosyntaxcheck', '-pagesize', 'MAX', '']
I tried this solution posted on github but not sure about the config.
 
What's iomhost and iomport here? I am running on my laptop and don't have access to any server. Can it still be possible? 

sas = saspy.SASsession(java='/usr/bin/java', iomhost=host, iomport=8591)

1 REPLY 1
sastpw
SAS Employee

Hey, is this the same as the issue: https://github.com/sassoftware/saspy/issues/357

Seems like, so just checking. I was also able to go on colab, install saspy and then connect to SAS ODA from there. I just specified

the java='/usr/bin/java', iomhost=[appropriate hosts for your account] and iomport=8591 keys to get to the workspace servers in ODA (using my account, of course).

Thanks,

Tom

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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