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.

142 APPLY DICTIONARY<br />

FORMATS Applies variable print and write formats. This is the same variable definition<br />

attribute that can be defined with the FORMATS command. This setting is<br />

primarily applicable only to numeric variables. For string variables, this<br />

affects only the formats if the source or target variable is AHEX format and<br />

the other is A format.<br />

LEVEL Applies variable measurement level (nominal, ordinal, scale). This is the<br />

same variable definition attribute that can be defined with the VARIABLE<br />

LEVEL command.<br />

MISSING Applies variable missing value definitions. Any existing defined missing<br />

values in the matching variables in the working data file are deleted. This is<br />

the same variable definition attribute that can be defined with the MISSING<br />

VALUES command. Missing value definitions are not applied to long string<br />

(more than eight characters) target variables. Missing values definitions are<br />

not applied to short string variables if the source variable contains missing<br />

values of a longer width than the defined width of the target variable.<br />

VALLABELS Applies value label definitions. Value labels are not applied to long string<br />

(more than eight characters) target variables. Value labels are not applied<br />

to short string variables if the source variable contains defined value<br />

labels for values longer than the defined width of the target variable. You<br />

can REPLACE or MERGE value labels.<br />

VALLABELS = REPLACE replaces any defined value labels from variable in<br />

the working (target) data file with the value labels from the matching variable<br />

in the source data file.<br />

VALLABELS = MERGE merges defined value labels for matching variables. If<br />

the same value has a defined value label in both the source and working<br />

(target) data files, the value label in the working data file is unchanged.<br />

Example<br />

APPLY DICTIONARY from “lastmonth.sav”<br />

/VARINFO LEVEL MISSING VALLABELS = MERGE.<br />

• Level of measurement and defined missing values from the source data file are applied to<br />

matching variables in the working (target) data file. Any existing missing values<br />

definitions for those variables in the working data file are deleted.<br />

• Value labels for matching variables in the two data files are merged. If the same value has<br />

a defined value label in both the source and working (target) data files, the value label in<br />

the working data file is unchanged.

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

Saved successfully!

Ooh no, something went wrong!