Hi,
How do I connect/execute python code into SAS Viya?
Is there any way other than Python SWAT?
Please suggest what are the possible ways to execute python script into SAS VIYA.
Thanks Alexal fro your reply!
Just to give you brief about my query:
I have python scripts which imports data and do some statistcial analysis. I want to execute the same script in SAS Viya without using SWAT. It would be great if you can assist me with some sample code or any document which will help me to understand/wirte my own library to communicate with CAS server over REST API.
Can I write python script in SAS code window instead of using Juyter Notebook as a interface and get output result directly on SAS Viya ?
Okay.
Can I call python scirpt using Proc IML? If yes do you have any reference to share please.
@USP2405 did you find a solution to your problem?
I am in similar situation. We have Viya environment and Python scripts from pilot project done outside SAS. Trying to understand if there's any change we can run Python scripts using SAS Viya end-user tools as it is without installing any third-party tools. These scripts produce csv files.
@alexal, do you know if there's been advancements in this area as this post was originally posted several years ago.
Thank you
Rain
Hi @Rain,
@alexal may have additional insight, but I'd recommend starting with the Python tools outlined on developer.sas.com. There, you can browse multiple tools for SAS and Python integration.
There is also Proc FCMP; however, this looks to be more inline with the original question vs your situation.
Join us for SAS Community Trivia
SAS Bowl XXXVIII, SAS Programming: Getting Started
Wednesday, February 14, 2024, at 10 a.m. ET | #SASBowl
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.
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.