Macro Variables

SAS Environment Macro Variables

The following table lists the macro variables that are used to set the SAS environment:
Macro Variable Name
Description
Example Value
_MM_Service_Registry_URL
the URL for a SAS environment that is defined in a SAS environment file
%let _MM_Service_Registry_URL=%STR(http://abcdef.sas.com:7980/SASWIPClientAccess/remote/ServiceRegistry);
_MM_Password
the password of the user ID that is running the macro
mdlmgrpw2
_MM_User
the user ID of the user that is running the macro
mdlmgradmin

Scoring Test Macro Variables

The following table lists the macro variables that are used to run a scoring test:
Macro Variable Name
Description
Example Value
_MM_InputDS
the location of the input data source file
http://abc123.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_SCORE_INPUT.sas7bdat
_MM_InputLib
the libref that is associated with the location of the input data source file
inlib
_MM_ModelID
the UUID of the model
4622bdda-ac1b-12d5-0196-021edec54347
_MM_OutputDS
the location of the output data source file
http://abc123.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_SCORE_OUTPUT.sas7bdat
_MM_OutputLib
the libref that is associated with the location of the output data source file
outdslib
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_PerformanceDS
the location of the performance data source file
http://abc123.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_perf2013Q2.sas7bdat
_MM_PerformanceLib
the libref that is associated with the location of the performance data source file
perflib
_MM_TaskDir
the URL of the stored scoring test
http://myserver.mycompany:8080/SASContentServer/repository/default/ModelManager/MMRoot/DDHMEQ/HMEQ/2013/Scoring
_MM_TestDS
the location of the test data source file
http://abc123.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_TEST.sas7bdat
_MM_TestLib
the libref that is associated with the location of the test source file
testlib
_MM_TrainDS
the location of the train data source file
http://abc123.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_train.sas7bdat
_MM_TrainLib
the libref that is associated with the location of the train source file
trainline
_MM_User
the user ID of the user that is running the report
mdlmgradmin

Validating Model Report Macro Variables

The following tables lists the macro variables that are used to create model comparison reports, model profile reports, delta reports, dynamic lift reports, and user reports:
Macro Variable Name
Description
Example Value
_MM_LocationInfo
the location information for a model
/MMRoot/Mortgages/HMEQ/2013
_MM_ModelFlag
the value of the champion model flag
0 - champion model
1 - challenger model
0
_MM_ModelLabel
a label for a model
reg
_MM_ModelName
the name of the model
Tree
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_PosteriorVa
the model’s posterior variable name
EM_EVENTPROBABILITY
_MM_ProjectName
the name of the project
HMEQ
_MM_ReportFormat
the output format of the generated report
html
_MM_ReportLib
the libref for the Report node
report
_MM_ResourcesLib
the libref for the Resources node
resources
_MM_SampleSize
the size of a sample
1000
_MM_SampleSeed
the sample seed
12345
_MM_SourceCodeType
the type of score code
SAS Program
_MM_TargetEvent
the target event value
1
_MM_TargetVar
the target variable name
bad
_MM_TaskDir
the URL of the stored report
http://myserver.mycompany:8080/SASContentServer/repository/default/ModelManager/MMRoot/DDHMEQ/HMEQ/2013/Reports
_MM_User
the user ID of the user that is running the report
mdlmgradmin

Performance Monitoring Report Macro Variables

The following table lists the macro variables that are used to create performance monitoring reports:
Macro Variable Name
Description
Example Value
_MM_Agg_Mail
specifies whether to send aggregated mail for performance monitoring with multiple data sources
Y or N
_MM_DateTime
the time that the performance task is to run
1Sep2013:05:00:00
_MM_Hpds2_Flg
enables high-performance monitoring if set it to 1, is used with the _MM_Hpdm_Performance macro variable
1
_MM_Hpdm_Performance
the configuration settings for high-performance monitoring
%nrstr(performance commit=10000 cpucount=ACTUAL dataserver='tera2650' timeout=120 host='tms2650' install='/opt/v940/laxno/TKGrid';)
_MM_ModelName
the name of the champion model
reg1
_MM_ModelID
the UUID of the champion model
7514d6e-ac1b-12d5-01e4-878abeb04505
_MM_ModelLocalPath
the location of the SAS Work library in the SAS Application Server
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\SAS Temporary Files\_TD2032_BRDVM0199_
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_ProjectPath
the network path to the model project in the model repository
//ModelManagerDefaultRepo/MMRoot/DDHMEQ/HMEQ
_MM_ProjectURLPath
the URL to the model project in the model repository
http://myserver.mycompany.com:8080/SASContentServer/repository/default/ModelManager/MMRoot/HMEQ
_MM_ProjectUUID
the project UUID
27514d6e-ac1b-12d5-01e4-878abeb04505
_MM_Seg_Filter
filters the performance data for each sub-project from the top level performance datasource by using this macro variable
%nrstr(Location='USA')
_MM_ScoreCodeType
the type of score code
SAS Program
_MM_VersionName
the name of the default version
2013
_MM_ReportDatasrc
the project’s performance data set
jun13perf.sas7bdat
_MM_PreCode
one or more macro variables that set values to performance variables
%let _MM_EventProbVar=score;
%let _MM_TargetVar=bad;
_MM_ResultURLPath
the URL to the version’s Resources node
http://myserver.mycompany.com:8080/SASContentServer/repository/default/ModelManager/MMRoot/HMEQ/2013/Resources
_MM_TimeLabel
the label that is used in reports to represent the time period of the data in the performance data set
2013Q2
_MM_Trace
indicates whether to write a trace log
ON or OFF
_MM_User
the user ID of the user that is running the report
mdlmgradmin

Dashboard Report Macro Variables

The following table lists the macro variables that are used to create dashboard reports:
Macro Variable Name
Description
Example Value
_MM_Dashboard_Dir
the path to the directory where the dashboard report is stored
C:\SAS\Config\Lev1\AppData\SASModelManager12.3\Dashboard
_MM_Force_Run_Dash_Reports
whether to force running the report and updating all tables
Y or N
_MM_Password
the password of the user whose user ID is running the report
mdlmgrpw2
_MM_ReportFormat
the output format of the generated report
html
_MM_Report_Style
the style used in the generated report
Seaside
_MM_SAS_Locale
the SAS session locale
en_US
_MM_User
the user ID of the user who is running the report
mdlmgradmin

Model Retrain Report Macro Variables

The following table lists the macro variables that are used to retrain models:
Macro Variable
Description
Example Value
_MM_Hpds2_Flg
enables high-performance monitoring if set it to 1, is used with the _MM_Hpdm_Performance macro variable
1
_MM_Hpdm_Performance
the configuration settings for high-performance monitoring
%nrstr(performance commit=10000 cpucount=ACTUAL dataserver='tera2650' timeout=120 host='tms2650' install='/opt/v940/laxno/TKGrid';)
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_Service_Registry_URL
the URL for a SAS environment that is defined in a SAS environment file
%let _MM_Service_Registry_URL=%STR(http://abcdef.sas.com:7980/SASWIPClientAccess/remote/ServiceRegistry);
_MM_User
the user ID of the user who is running the report
mdlmgradmin