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.

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 3 replies
  • 1604 views
  • 4 likes
  • 4 in conversation