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.
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!
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.