27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPLY DICTIONARY 139<br />

target file as new variables using the variable definition attributes (variable and value<br />

labels, missing values, etc.) from the source variable.<br />

• For variables with matching name and type, variable definition attributes from the source<br />

variable are applied to the matching target variable.<br />

• If both SOURCE and TARGET are specified, the SOURCE subcommand can only specify<br />

one variable. Variable definition attributes from that single variable in the SOURCE subcommand<br />

are applied to all variables of matching type. When applying the attributes of<br />

one variable to many variables, all variables specified in the SOURCE and TARGET subcommands<br />

must be of the same type.<br />

• For variables with matching names but different types, only variable labels are applied to<br />

the target variables.<br />

Table 1 Variable mapping for SOURCE and TARGET subcommands<br />

SOURCE<br />

subcommand<br />

Example<br />

TARGET<br />

subcommand<br />

Variable Mapping<br />

none none Variable definition attributes from the source data file are<br />

applied to matching variables in the working (target) data file.<br />

New variables may be created if the NEWVARS subcommand<br />

is specified.<br />

many none Variable definition attributes for the specified variables are<br />

copied from the source data file to the matching variables in<br />

the working (target) data file. All specified variables must<br />

exist in the source data file. New variables may be created if<br />

the NEWVARS subcommand is specified.<br />

none many Variable definition attributes for the specified variables are<br />

copied from the source data file to the matching variables in<br />

the working (target) data file. All specified variables must<br />

exist in the source data file. New variables may be created if<br />

the NEWVARS subcommand is specified.<br />

one many Variable definition attributes for the specified variable in the<br />

source data file are applied to all specified variables in the<br />

working (target) data file that have a matching type. New<br />

variables may be created if the NEWVARS subcommand is<br />

specified.<br />

many many Invalid. <strong>Command</strong> not executed.<br />

APPLY DICTIONARY from *<br />

/SOURCE VARIABLES = var1<br />

/TARGET VARIABLES = var2 var3 var4<br />

/NEWVARS.<br />

• Variable definition attributes for var1 in the working data file are copied to var2, var3, var4<br />

in the same data file if they have a matching type.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!