I know I can connect SAS on Demand with SASPy.
But I like to to test SAS code that uses Python functions created with PROC FCMP at SAS on Demand. It looks like MAS_PYPATH is not set in SAS on Demand.
Lex, I don't know this for certain but I suspect Python is not generally available for SAS code in this environment.
With over a quarter million active users, the SAS OnDemand for Academics environment has to limit the ability to call out to external processes, including things like Python.
In an environment where you had some control, you could set these environment variables in your SAS program to known values:
options set=MAS_PYPATH="path-to-python"
set=MAS_M2PATH="your-sas-root/SASFoundation/9.4/misc/tkmas/mas2py.py";
But then you would also need to be able to install (or ask for) the Python packages you need. numpy, pandas, etc are likely not in a vanilla environment, so an admin needs to make those packages available in order for you to do anything useful. Given the governance needed for SAS OnDemand for Academics, I'm thinking these use cases are out of scope.
Lex, I don't know this for certain but I suspect Python is not generally available for SAS code in this environment.
With over a quarter million active users, the SAS OnDemand for Academics environment has to limit the ability to call out to external processes, including things like Python.
In an environment where you had some control, you could set these environment variables in your SAS program to known values:
options set=MAS_PYPATH="path-to-python"
set=MAS_M2PATH="your-sas-root/SASFoundation/9.4/misc/tkmas/mas2py.py";
But then you would also need to be able to install (or ask for) the Python packages you need. numpy, pandas, etc are likely not in a vanilla environment, so an admin needs to make those packages available in order for you to do anything useful. Given the governance needed for SAS OnDemand for Academics, I'm thinking these use cases are out of scope.
Thanks, Chris, I get that. SAS OnDemand is really a vanilla SAS environment to get 'a taste of SAS'.
I appreciate your detailed response.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.