Hello @TimBedsted , @nstdt Please have a look at the post by @ChrisHemedinger at Re: Executing python code from SAS Environment - SAS Support Communities
Please note that the value of MAS_M2PATH should represent the actual path of mas2py.py . Similarly, the value of MAS_PYPATH should be the actual path of python executable.
If you still have issue, you can try appending the path of python.exe and mas2py.py to the system PATH variable (i.e., environment variable) OR add the following to the SAS EG options
options SET=PATH=SYSGET(PATH):[path of python.exe];[path of mas2py.py];
... View more