Data Model > Accessing the UNICOM Intelligence Data Model > Working with the Metadata Model > Derived variables > Dynamically derived variables
 
Dynamically derived variables
Dynamically derived variables are defined in the metadata only and do not actually exist in the case data. After they have been defined in the metadata, they can be queried just like any other variable, but are calculated “on the fly”.
The following mrScriptBasic examples show how to create these types of dynamically derived variables: numeric, Boolean, and categorical.
The examples use the Museum sample data set, which is installed with the UNICOM Intelligence Developer Documentation Library. The data set consists of two files (museum.mdd and museum.ddf), which by default are in:
[INSTALL_FOLDER]\IBM\SPSS\DataCollection\7\DDL\Data\Data Collection File\
If the files are in a different location on your computer, you must edit the code before you run the examples.
See also
Creating a numeric derived variable
Creating a boolean derived variable
Creating a categorical derived variable
Derived variables