BookmarkSubscribeRSS Feed

How SAS Model Manager can help in generating DS2 code to run your MAS published model.

Started ‎11-27-2018 by
Modified ‎12-12-2018 by
Views 1,616

This article is a follow up on a question from an article I published a few days ago and where I discussed how to deploy a SAS analytical model to MAS and execute it through REST API calls.  Question came how to execute same scoring model through DS2 code. 


Well SAS Model Manager gave me the answer.  For that go to the projects overview in SAS Model Manager and select the project that contains the model that has been published to MAS.  In the project select the Scoring tab and within the Scoring tab, choose Publishing Validation tab.   You get overview of different publishing validation tests because every time you publish a model the system creates such test.  You can edit a test and select an input table.  After that you can run a test of the specific model.  The validation test runs within the publishing destination that the model was published to.




Click in the Results column to view the results of the test.




The Test Results page displays information about the test, including the URIs for the test definition and test results. It also includes URIs to the SAS code that was run by SAS Model Manager, the output data set, and the SAS log that was generated when the code was run.




You can click the Output, Code, or Log pages to view the test result details.  I have attached the SAS program containing the code.  It’s a DS2 Program, executed here through CAS action.



Version history
Last update:
‎12-12-2018 10:57 AM
Updated by:



SAS is headed back 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.

Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!

Submit your idea!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags