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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

140 APPLY DICTIONARY<br />

• Any variables specified in the TARGET subcommand that do not already exist are created,<br />

using the variable definition attributes of the variable specified in the SOURCE subcommand.<br />

Example<br />

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

/SOURCE VARIABLES = var1, var2, var3.<br />

• Variable definition attributes from the specified variables in the source data file are<br />

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

• For variables with matching names but different types, only variable labels from the<br />

source variable are copied to the target variable.<br />

• In the absence of a NEWVARS subcommand, no new variables will be created.<br />

FILEINFO Subcommand<br />

FILEINFO applies global file definition attributes from the source data file to the working<br />

(target) data file.<br />

• File definition attributes in the working (target) data file that are undefined in the source<br />

data file are not affected.<br />

• This subcommand is ignored if the source data file is the working data file.<br />

• This subcommand is ignored if no keywords are specified.<br />

• For keywords that contain an associated value, the equal sign between the keyword and<br />

the value are required—for example, DOCUMENTS = MERGE.<br />

DOCUMENTS Applies documents (defined with the DOCUMENTS command) from the<br />

source data file to the working (target) data file. You can REPLACE or<br />

MERGE documents.<br />

DOCUMENTS = REPLACE replaces any documents in the working data file,<br />

deleting pre-existing documents in the file. This is the default if DOCUMENTS<br />

is specified without a value.<br />

DOCUMENTS = MERGE merges documents from the source and working<br />

(target) data file. Unique documents in the source file that don’t exist in the<br />

working (target) data file are added to the working data file. All documents<br />

are then sorted by date.<br />

FILELABEL Replaces the file label (defined with the FILE LABEL command).<br />

MRSETS Applies multiple response set definitions from the source data file to the<br />

working (target) data file. (Note that multiple response sets are currently used<br />

only by the TABLES add-on component.) Multiple response sets in the source<br />

data file that contain variables that don’t exist in the working data file are<br />

ignored, unless those variables are created by the same APPLY DICTIONARY<br />

command. You can REPLACE or MERGE multiple response sets.<br />

MRSETS = REPLACE deletes any existing multiple response sets in the<br />

working (target) data file, replacing them with multiple response sets from<br />

the source data file.

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

Saved successfully!

Ooh no, something went wrong!