_MM_RC
Return Value
|
Access Macro
Status
|
---|---|
0
|
All OK
|
1
|
Macro parameter error
|
/*******************************************/ /* Specify the macro code location */ /*******************************************/ Filename MMAccess catalog "sashelp.modelmgr.accessmacros.source"; /*******************************************/ /* Load the Access macros */ /*******************************************/ %include MMAccess; /*******************************************/ /* Unassign the filename */ /*******************************************/ Filename MMAccess;
libname smmmodel "c:\myModel\HMEQ\scorecode";
/********************************************************/ /* Set the location for the model tables */ /********************************************************/ libname hmeqtabl "c:\myModel\hmeq\tables"; /*********************************************************/ /* DATA step to create the target variable table. */ /* Because there is only one target variable, keep only */ /* that variable. */ /*********************************************************/ data hmeqtabl.target; set hmeqtabl.training(obs=1); keep bad; run; /*********************************************************/ /* DATA step to create the input variable table. */ /* Keep only the variables used for input by the model. */ /*********************************************************/ data hmeqtabl.invars; set hmeqtabl.training (obs=1); keep debtinc delinq derog job loan mortdue ninq reason value yoj; run; /*********************************************************/ /* DATA step to create the output variable table. */ /* Keep only the variables used for output by the model.*/ /* Include the score code to get the output variables. */ /*********************************************************/ data hmeqtabl.outvars; set hmeqtabl.training; %include "c:\myModel\hmeq\score.sas" keep f_bad i_bad p_0 p_1; run;