NEWVARS Subcommand (APPLY DICTIONARY command)
NEWVARS is required to create new variables in the active (target) dataset.
Example
APPLY DICTIONARY FROM “lastmonth.sav”
/NEWVARS.
- For a new, blank active dataset, all variables with all of their variable definition attributes are copied from the source dataset, creating a new dataset with an identical set of variables (but no data values).
- For an active dataset that contains any variables, variable definition attributes from the source dataset are applied to the matching variables in the active (target) dataset. If the source dataset contains any variables that are not present in the active dataset (determined by variable name), these variables are created in the active dataset.