I have a python code on my PC. I would like to call the Python code using SAS EG which is running on application server installed on Linux. By using x commands from SAS EG, it can run commands on the Linux environment. With this setup is there a way to run system commands on windows?
Reeza, as always, is correct, in that if you have Base SAS on your local machine, then EG can launch a local SAS session and, assuming you have ALLOWXCMD, then you can call your python program. You probably are your own administrator for your local SAS environment, so ALLOWXCMD is likely not a problem.
I wanted to also point out this alternative approach:
https://blogs.sas.com/content/sasdummy/2013/11/25/11-custom-tasks/, and
https://blogs.sas.com/content/sasdummy/2007/10/05/you-are-under-my-command-prompt/
You'll need the ability to install a custom task into EG.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.