Hi,
I am looking for a way to get the list of input and output variables of a published SAS Viya MAS model in a script.
Is this possible using REST API calls?
Or is there any other way to retrieve the input and output variables of a published model in SAS script?
Thanks,
Helmut
Please check this page https://developer.sas.com/apis/rest/DecisionManagement/#get-model-variables
Hi @H-elmu-t,
Just an FYI. Additional info from a colleague for MAS implications:
I don’t believe that MAS retains a reliable link back to the model in MM (I could be wrong), so I don’t think pulling the input/output variable info from MM will work (the version in MM may not match what was published to MAS).
I’d recommend going directly to MAS:
Get a list of module steps (DS2 methods you can call). https://developer.sas.com/apis/rest/DecisionManagement/#get-module-steps
And then get the info for a specific step (probably SCORE) https://developer.sas.com/apis/rest/DecisionManagement/#get-a-specific-step-of-the-module
That will tell you the input/output vars.
Join us for SAS Community Trivia
Hi @joeFurbee,
Thanks for your feedback, that's a very good point!
I will go directly to MAS instead (as you recommended).
Best regards,
Helmut
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.