If you're a boxing fan of a certain age, then you remember Roberto Duran ending his fight with Sugar Ray Leonard by saying, "No Más." Duran was, of course, saying "No More" to Sugar Ray but SAS is saying "Yes" to the MAS (SAS Micro-Analytic Service). Multiple SAS products and solutions, including SAS ESP and SAS Decision Manager, are betting on the MAS.
The MAS is a real time, memory resident, high performance, high bandwidth program execution service. It can execute SAS DS2 packages, Python scripts, as well as C in the upcoming 2.3 release. The MAS is meant to be a lightweight common solution for integrating real-time analytic models (e.g. EMiner score code) with SAS solutions as well as 3rd party applications.
So if it's a "program execution service," does that mean I submit my code to it like SAS Display Manager or Enterprise Guide? Well yeah but the MAS doesn't execute batch code. It executes services, as in RESTful webservices. As such, the MAS is actually a web application and is deployed to the SAS Web application server. Further, it doesn't have a UI like SAS DM or EG either. Well it does have one screen but it doesn't do much...
You interact with the MAS via a REST API. For example, you can list of the MAS modules (~the DS2 and Python programs deployed to the MAS) with the following GET command, which can be issued in any common web browswer:
Below, we can see this command running in Chrome.
And to see an example of executing a Decision Builder service via the MAS, see my last post here.
While the doc does explain the requirements for DS2 code being deployed to the MAS along with some basic information on posting DS2 code to a module and/or creating a new MAS module, you'll generally rely on the SAS application (e.g. Decision Builder or ESP) to push the code and create the MAS module for you. If you did really want to create a new MAS module manually, you POST the code to .../rest/modules/createModule url as shown below:
.
Hi Stephen, is there an updated version of the MASTest tool which works with the lastest version of MAS (5.1)? Looks to be just what I'm after for testing & demonstrating the functionality.
thanks
Alan
Thanks Steve, I shall take a look at that. Alan
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!
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.