The SAS Model Manager
access macros provide a way to use SAS code to perform basic operations
on a SAS Model Manager repository. The SAS Model Manager access macros
are a combination of SAS macros and Java libraries. The SAS Model
Manager access macros and Java libraries are delivered with the SAS
Model Manager software.
Here is a list of the
SAS Model Manager access macros:
-
%MM_AddModelFile adds a model component
file to a model that is already registered with SAS Model Manager.
-
%MM_GetModelFile retrieves a model
from the model repository and saves it to a specified destination.
-
%MM_GetURL retrieves the SAS Model
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 Model 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 Model Manager.
-
%MM_RegisterByFolder registers
multiple models simultaneously to the SAS Model 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 SAS Model
Manager access macros, you can structure your SAS program as follows:
-
Use the SAS Model Manager global
macro variables to define the SAS Model Manager Service Registry URL
and to define a valid SAS Model Manager user and password.
-
Create a fileref to the SAS Model
Manager 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.