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.

FILE TYPE—END FILE TYPE 577<br />

• The format of the case identification variable must be the same on all records. If the case<br />

identification variable is defined as a string on the FILE TYPE command, it cannot be<br />

defined as a numeric variable on the RECORD TYPE command, and vice versa.<br />

WILD Subcommand<br />

WILD determines whether the program issues a warning when it encounters undefined record<br />

types in the data file. Regardless of whether the warning is issued, undefined records are not<br />

included in the working data file.<br />

• The only specification on WILD is keyword WARN or NOWARN.<br />

• WARN cannot be specified if keyword OTHER is specified on the last RECORD TYPE<br />

command to indicate all other record types (see RECORD TYPE).<br />

WARN Issue warning messages. The program displays a warning message and the<br />

first 80 characters of the record for each record type that is not mentioned on<br />

a RECORD TYPE command. This is the default for grouped file types.<br />

NOWARN Suppress warning messages. The program simply skips all record types not<br />

mentioned on a RECORD TYPE command and does not display warning messages.<br />

This is the default for mixed and nested file types.<br />

Example<br />

FILE TYPE MIXED FILE=TREATMNT RECORD=RECID 1-2 WILD=WARN.<br />

• WARN is specified on the WILD subcommand. The program displays a warning message<br />

and the first 80 characters of the record for each record type that is not mentioned on a<br />

RECORD TYPE command.<br />

DUPLICATE Subcommand<br />

DUPLICATE determines how the program responds when it encounters more than one record<br />

of each type for a single case. DUPLICATE is optional for grouped and nested files. DUPLICATE<br />

cannot be used with mixed files.<br />

• The only specification on DUPLICATE is keyword WARN, NOWARN, or CASE.<br />

WARN Issue warning messages. The program displays a warning message and the<br />

first 80 characters of the last record of the duplicate set of record types. Only<br />

the last record from a set of duplicates is included in the working data file.<br />

This is the default for grouped files.<br />

NOWARN Suppress warning messages. The program does not display warning messages<br />

when it encounters duplicate record types. Only the last record from a set of<br />

duplicates is included in the working data file. This is the default for nested<br />

files.<br />

CASE Build a case in the working data file for each duplicate record. The program<br />

builds one case in the working file for each duplicate record, spreading<br />

information from any higher-level records and assigning system-missing<br />

values to the variables defined on lower-level records. This option is available<br />

only for nested files.

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

Saved successfully!

Ooh no, something went wrong!