BookmarkSubscribeRSS Feed
sridharamirneni
Calcite | Level 5

Is there a way that an existing Python Code can be run in SAS Viya 3.5? I am looking to do this so that i have a single repo for all my models.

4 REPLIES 4
SASKiwi
PROC Star

This link in the SAS doc is probably a good place to start. There are a lot of references to Python in the documentation so I suggest you search for these also.

sbxkoenk
SAS Super FREQ

Hello,

 

This is probable the opposite direction of what you want, but SASPy allows you to interface with SAS® from your Python code.
Ask the Expert: SASPy Demo: Q&A, Slides, Demo Notebook and On-Demand Recording
Posted 3 weeks ago | by sastpw
https://communities.sas.com/t5/Ask-the-Expert/Ask-the-Expert-SASPy-Demo-Q-amp-A-Slides-Demo-Notebook...

 

To integrate Python in SAS (what you probably want), see here!

  1. Incorporating Python into your SAS Visual Data Mining and Machine Learning Pipeline
    Apr 14, 2020
    https://www.youtube.com/watch?v=oxY1KASl2uw
  2. The PYTHON procedure (PROC PYTHON).
    https://go.documentation.sas.com/doc/en/pgmsascdc/v_017/proc/p1iycdzbxw2787n178ysea5ghk6l.htm

 

Regards,
Koen

rodriguez
Calcite | Level 5

I've heard of SASPy, but if you are on Viya, then I think SWAT is also available if you want to interface with SAS from your Python code and leverage processing on CAS.

 

For PROC PYTHON, I don't think that procedure is available on 3.5. When I checked documentation, I could only find it in Viya 2020.1 and later. Perhaps I could have also missed it.

sbxkoenk
SAS Super FREQ

Hello @rodriguez ,

 

You are right, PROC PYTHON is NOT in SAS VIYA 3.5.

 

Koen

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 4306 views
  • 0 likes
  • 4 in conversation