SAS Model Manager Macro Variables

Scoring Task Macro Variables

The following table lists the macro variables that are used to run a scoring task:
Macro Variable Name
Description
Example
_MM_InputDS
the location of the input data source file
http://vmwwin7084.na.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_MulticastAddress
the SAS Model Manager server multicast address
239.27.18.213
_MM_MulticastPort
the SAS Model Manager server multicast port
8561
_MM_OutputDS
the location of the output data source file
http://vmwwin7084.na.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://vmwwin7084.na.sas.com:8080/SASContentServer/repository/default/sasfolders/Shared Data/Model Manager/MMLib/HMEQ_perf2012Q2.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 task
http://myserver.mycompany:8080/SASContentServer/repository/default/ModelManager/MMRoot/DDHMEQ/HMEQ/2012/Scoring
_MM_TestDS
the location of the test data source file
http://vmwwin7084.na.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://vmwwin7084.na.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
trainlib
_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
_MM_LocationInfo
the location information for a model
/MMRoot/Mortgages//HMEQ/2012
_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
resourcs
_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/2012/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
_MM_DateTime
the time that the performance task is to run
1Sep2012:05:00:00
_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 Model Manager server
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\SAS Temporary Files\_TD2032_BRDVM0199_
_MM_MulticastAddress
the SAS Model Manager server multicast address
2.27.18.213
_MM_MulticastPort
the SAS Model Manager server multicast port
8561
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_ProjectAlias
the alias of the project
_MM_ProjectPath
the network path to the SAS Model Manager project.
//ModelManagerDefaultRepo/MMRoot/DDHMEQ/HMEQ
_MM_ProjectURLPath
the URL to the SAS Model Manager project
http://myserver.mycompany.com:8080/SASContentServer/repository/default/ModelManager/MMRoot/HMEQ
_MM_ProjectUUID
the project UUID
27514d6e-ac1b-12d5-01e4-878abeb04505
_MM_ScoreCodeType
the type of score code
SAS Program
_MM_VersionName
the name of the default version
2012
_MM_ReportDatasrc
the project’s performance data set
jun12perf.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/2012/Resources
_MM_TimeLabel
the label that is used in reports to represent the time period of the data in the performance data set
2012Q2
_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
_MM_Dashboard_Dir
the path to the directory where the dashboard report is stored
C:\SAS\Config\Lev1\AppData\SASModelManager\Dashboard
_MM_Force_Run_Dash_Reports
whether to force running the report and updating all tables
Y or N
_MM_MulticastAddress
the SAS Model Manager server multicast address
2.27.18.213
_MM_MulticastPort
the SAS Model Manager server multicast port
8561
_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
_MM_MulticastAddress
the SAS Model Manager server multicast address
2.27.18.213
_MM_MulticastPort
the SAS Model Manager server multicast port
8561
_MM_Password
the password of the user ID that is running the report
mdlmgrpw2
_MM_User
the user ID of the user who is running the report
mdlmgradmin