BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
H-elmu-t
Obsidian | Level 7

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

1 ACCEPTED SOLUTION
5 REPLIES 5
H-elmu-t
Obsidian | Level 7
Thanks a lot!
joeFurbee
Community Manager

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
SAS Bowl XXXVI, Data Simulation
Wednesday, December 13, 2023, at 10 a.m. ET | #SASBowl

H-elmu-t
Obsidian | Level 7

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

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1138 views
  • 3 likes
  • 3 in conversation