The Model Management
access macros provide a way to use SAS code to perform basic operations
on a model repository. The Model Management access macros are a combination
of SAS macros and Java libraries. The Model Management access macros
and Java libraries are delivered with the SAS Decision Manager
software.
Here is a list of the
Model Management access macros:
-
%MM_AddModelFile adds a model component
file to a model that is already registered with SAS Decision Managerr.
-
%MM_GetModelFile retrieves a model
from the model repository and saves it to a specified destination.
-
%MM_GetURL retrieves the SAS Decision Manager
path to an object in the model repository and saves it in the global
macro variable _MM_URL.
-
%MM_Register registers a model
in the SAS Decision Manager model repository. You can
use the %MM_Register macro in the same SAS program that you create
models using SAS Enterprise Miner to register the model for use with SAS Decision Manager.
-
%MM_RegisterByFolder registers
multiple models simultaneously to the SAS Decision Manager
model repository. Model files for a single model are contained in
a subdirectory, and all subdirectories have the same parent directory.
-
%MM_CreateModelDataset creates
a data set that contains information for all models in a specified
folder. Model information can be retrieved in a data set for all models
in MMRoot, an organizational folder, a project, a version, and a single
model.
Note: The macros are in the modelmgr.sas7bcat
file. The location of this file for Windows is \sasintalldir\SASFoundation\9.4\mmcommon\sashelp
.
The default value for sasinstalldir
in
Windows is C:\Program Files\SAS
. The
location of this file for UNIX is /sasinstalldir/SASFoundation/9.4/sashelp
.
The default value for sasinstalldir in
UNIX is /usr/local/SASHome
.
To use the Model Management
access macros, you can structure your SAS program as follows:
-
Use the Model Management global
macro variables to define the SAS Decision Manager Service
Registry URL and to define a valid SAS Decision Manager
user and password.
-
Create a fileref to the Model Management
access macro catalog and include that fileref, using the %INCLUDE
statement.
-
Set up librefs to access the necessary
directories and filerefs to access the necessary files.
-
Set up macro variables as necessary.
-
-
Check for successful completion.