BookmarkSubscribeRSS Feed
Garik
Obsidian | Level 7

Hi. I would like to ask. How to access python in sas ?

could we use python in SAS on Demands

 

thanks in advance

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You can't use Python directly in a SAS program as such, SAS does not have a Python interpreter as part of it.  You can certainly call Python code, via use of the command line like any other command line programs.  SAS OnDemand however is a cloud based system for education purposes, not for a working environment, so no, I don't expect it could drive any Python code, nor why such a thing would be in "training" software.

Criptic
Lapis Lazuli | Level 10

There is a way but it needs to be set up properly: https://sassoftware.github.io/saspy/overview.html

ChrisHemedinger
Community Manager

You cannot use Python in SAS OnDemand for Academics, but you can use it -- via a Jupyter Notebook -- in SAS University Edition.  See this blog post for details.  Excerpt:

With the December 2017 update, SAS University Edition now includes the SASPy package, available in its Jupyter Notebook interface. If you're keeping track, you know that SAS University Edition has long had support for Jupyter Notebook. With that, you can write and run SAS programs in a notebook-style environment. But until now, you could not use that Jupyter Notebook to run Python programs. With the latest update, you can -- and you can use the SASPy library to drive SAS features like a Python coder.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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

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
  • 2249 views
  • 4 likes
  • 4 in conversation