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