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

GROUPED Grouped file type. GROUPED defines a file in which cases are defined by<br />

grouping together record types with the same identification number. Each<br />

case usually has one record of each type. All records for a single case must<br />

be together in the file. By default, the program assumes that the records are<br />

in the same sequence within each case.<br />

NESTED Nested file type. NESTED defines a file in which the record types are related<br />

to each other hierarchically. The record types are grouped together by a case<br />

identification number that identifies the highest level—the first record<br />

type—of the hierarchy. Usually, the last record type specified—the lowest<br />

level of the hierarchy—defines a case. For example, in a file containing<br />

household records and records for each person living in the household, each<br />

person record defines a case. Information from higher record types may be<br />

spread to each case. For example, the value for a variable on the household<br />

record, such as CITY, can be spread to the records for each person in the<br />

household.<br />

Subcommands and Their Defaults for Each File Type<br />

The specifications on the FILE TYPE differ for each type of file. Table 1 shows whether each<br />

subcommand is required or optional and, where applicable, what the default specification is<br />

for each file type. N/A indicates that the subcommand is not applicable to that type of file.<br />

Table 1 Summary of FILE TYPE subcommands for different file types<br />

Subcommand Mixed Grouped Nested<br />

FILE Conditional Conditional Conditional<br />

RECORD Required Required Required<br />

CASE Not Applicable Required Optional<br />

WILD NOWARN WARN NOWARN<br />

DUPLICATE N/A WARN NOWARN<br />

MISSING N/A WARN NOWARN<br />

ORDERED N/A YES N/A<br />

• FILE is required unless data are inline (included between BEGIN DATA—END DATA).<br />

• RECORD is always required.<br />

• CASE is required for grouped files.<br />

• The subcommands CASE, DUPLICATE, and MISSING can also be specified on the associated<br />

RECORD TYPE commands for grouped files. However, DUPLICATE=CASE is invalid.<br />

• For nested files, CASE and MISSING can be specified on the associated RECORD TYPE<br />

commands.<br />

• If the subcommands CASE, DUPLICATE, or MISSING are specified on a RECORD TYPE<br />

command, the specification on the FILE TYPE command (or the default) is overridden<br />

only for the record types listed on that RECORD TYPE command. The FILE TYPE specification<br />

or default applies to all other record types.

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

Saved successfully!

Ooh no, something went wrong!