Module Context

A module represents program code. In the case of DS2, each module represents exactly one DS2 package. If you are unfamiliar with DS2 packages, see “Understanding DS2 Methods and Packages” in SAS 9.4 DS2 Language Reference. Every module is owned by exactly one user context.
In the case of Python, each module represents a collection of related Python functions, and each module method represents one of those functions.
SAS Micro Analytic Service supports module revisions and is capable of hosting and executing multiple revisions of a module concurrently. When SAS Micro Analytic Service compiles a DS2 or Python module, it creates a revision of that module. Therefore, a module context is a container of revisions. A module context also houses any compiler warning or error messages that were generated from the latest compilation or compilation attempt.
Note: The Micro Analytic Service REST interface supports running only the latest revision of a module.