I am having difficulty using a PROC FCMP created function based on python code in IML. Is this even possible? I haven't been successful finding any online documentation/examples about this. I don't want to keep troubleshooting if this can't be done. If it can be done, can resources please be shared? Or maybe I need to take an entirely different approach.
Additional details ... python code needs to stay python, that is, I know I can translate it to run in SAS but I have a lot of complex already validated python code I need to run in SAS, so this isn't feasible. Python code is based on matrix syntax, which is why I believe IML must be used for processing rather than a data step. Functions are created via the FCMC procedure using Python Language Elements. The PYTHON procedure is unavailable in my SAS environment.
Any and all input is much appreciated.
No, PROC FCMP is used to define functions for the DATA step and procedures that process data row-by-row. IML is a matrix language and has its own way to create and call user-defined functions. These functions can take matrices and vectors as arguments and can return the same. See
Extending IML - Defining a Function Module - The DO Loop (sas.com)
Everything you wanted to know about writing SAS/IML modules - The DO Loop
No, PROC FCMP is used to define functions for the DATA step and procedures that process data row-by-row. IML is a matrix language and has its own way to create and call user-defined functions. These functions can take matrices and vectors as arguments and can return the same. See
Extending IML - Defining a Function Module - The DO Loop (sas.com)
Everything you wanted to know about writing SAS/IML modules - The DO Loop
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 to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.