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 141<br />

MRSETS = MERGE adds multiple response sets from the source data file to<br />

the collection of multiple response sets in the working data file. If a set with<br />

the same name exists in both files, the existing set in the working data file is<br />

unchanged.<br />

VARSETS Applies variable set definitions from the source data file to the working<br />

(target) data file. Variable sets are used to control the list of variables that<br />

are displayed in dialog boxes. Variable sets are defined by selecting Define<br />

Sets from the Utilities menu. Sets in the source data file that contain<br />

variables that don’t exist in the working data file are ignored, unless those<br />

variables are created by the same APPLY DICTIONARY command. You can<br />

REPLACE or MERGE variable sets.<br />

VARSETS = REPLACE deletes any existing variable sets in the working (target)<br />

data file, replacing them with variable sets from the source data file.<br />

VARSETS = MERGE adds variable sets from the source data file to the collection<br />

of variable sets in the working data file. If a set with the same name exists<br />

in both files, the existing set in the working data file is unchanged.<br />

WEIGHT Weights cases by the variable specified in the source file if there’s a<br />

matching variable in the target file. This is the default if the subcommand is<br />

omitted.<br />

ALL Applies all file information from the source data file to the working (target)<br />

data file. Documents, multiple response sets, and variable sets are merged,<br />

not replaced. File definition attributes in the working data file that are undefined<br />

in the source data file are not affected.<br />

Example<br />

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

/FILEINFO DOCUMENTS = REPLACE MRSETS = MERGE.<br />

• Documents in the source data file replace documents in the working (target) data file, unless<br />

there are no defined documents in the source data file.<br />

• Multiple response sets from the source data file are added to the collection of defined<br />

multiple response sets in the working data file. Sets in the source data file that contain<br />

variables that don’t exist in the working data file are ignored. If the same set name exists<br />

in both data files, the set in the working data file remains unchanged.<br />

VARINFO Subcommand<br />

VARINFO applies variable definition attributes from the source data file to the matching<br />

variables in the working (target) data file. With the exception of VALLABELS, all keywords<br />

replace the variable definition attributes in the working data file with the attributes from the<br />

matching variables in the source data file.<br />

ALIGNMENT Applies variable alignment for Data Editor display. This setting affects only<br />

alignment (left, right, center) in the Data view display of the Data Editor.

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

Saved successfully!

Ooh no, something went wrong!