BookmarkSubscribeRSS Feed
maysha2854
Calcite | Level 5

I'm new to SAS &  use SAS EG 7.1 remotely. I have few datasets in my SAS libraries. I would like to access those datasets in my Python code which I run locally. 

 

Would like to know how we can connect remote SAS with Python?

I will be highly obliged,If you could please help me with each steps to get this. 

 

I tried Googling but couldn't get it up and running.

 

Thank you in advance.

 

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Never used python to connect to SAS so can't reply directly.

But be mindful that EG is just a client, like python. You need to connect to the server.

 

Tom
Super User Tom
Super User

If you are using the saspy package it has instructions for how to connect to a SAS application server.  That is what Enterprise Guide is connecting to.  Talk to your SAS administrator to get the details for your server.

sastpw
SAS Employee

Instructions are right here: https://sassoftware.github.io/saspy/install.html#iom-using-java you will be using the remote verison.

Repo is: https://github.com/sassoftware/saspy 

and examples are here: https://github.com/sassoftware/saspy-examples/tree/master/SAS_contrib

saspy can connect to the same workspace server that your EG client connects to. As @Tom mentioned, it sounds like you might need some help from your SAS admin. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1346 views
  • 0 likes
  • 4 in conversation