MAP subcommand (MODEL HANDLE command)
Use MAP to
map a set of variable names from the input model to a different set
of variable names in the active dataset. Both the VARIABLES and MODELVARIABLES keywords must be included. MODELVARIABLES is used to specify the list of variable names from the model that
are to be mapped. VARIABLES is
used to specify the list of target variable names in the active dataset.
- Both variable lists must contain the same number of names.
- No validation is performed against the current active
file dictionary when the
MODEL HANDLEcommand is processed. Errors associated with incorrect target variable names or variable data type mismatch are signaled when anAPPLYMODELorSTRAPPLYMODELtransformation is processed.
Example
MODEL HANDLE NAME=creditmod1 FILE=’credit1.mml’
/MAP VARIABLES=agecat curdebt
MODELVARIABLES=age debt.
- In this example, the variable age from the model file is mapped to the variable agecat in the active dataset. Likewise, the variable debt from the model file is mapped to the variable curdebt in the active dataset.