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.

568 FILE TYPE—END FILE TYPE<br />

Overview<br />

The FILE TYPE—END FILE TYPE structure defines data for any one of the three types of<br />

complex raw data files: mixed files, which contain several types of records that define<br />

different types of cases; hierarchical or nested files, which contain several types of records<br />

with a defined relationship among the record types; or grouped files, which contain several<br />

records for each case with some records missing or duplicated. A fourth type of complex file,<br />

files with repeating groups of information, can be defined with the REPEATING DATA<br />

command.<br />

FILE TYPE must be followed by at least one RECORD TYPE command and one DATA LIST<br />

command. Each pair of RECORD TYPE and DATA LIST commands defines one type of record<br />

in the data. END FILE TYPE signals the end of file definition.<br />

Within the FILE TYPE structure, the lowest-level record in a nested file can be read with<br />

a REPEATING DATA command rather than a DATA LIST command. In addition, any record in<br />

a mixed file can be read with REPEATING DATA.<br />

Basic Specification<br />

The basic specification on FILE TYPE is one of the three file type keywords (MIXED,<br />

GROUPED, or NESTED) and the RECORD subcommand. RECORD names the record identification<br />

variable and specifies its column location. If keyword GROUPED is specified, the<br />

CASE subcommand is also required. CASE names the case identification variable and specifies<br />

its column location.<br />

The FILE TYPE—END FILE TYPE structure must enclose at least one RECORD TYPE and<br />

one DATA LIST command. END FILE TYPE is required to signal the end of file definition.<br />

• RECORD TYPE specifies the values of the record type identifier (see RECORD TYPE).<br />

• DATA LIST defines variables for the record type specified on the preceding RECORD TYPE<br />

command (see DATA LIST).<br />

• Separate pairs of RECORD TYPE and DATA LIST commands must be used to define each<br />

different record type.<br />

The resulting working data file is always a rectangular file, regardless of the structure of the<br />

original data file.<br />

Specification Order<br />

• FILE TYPE must be the first command in the FILE TYPE—END FILE TYPE structure. FILE<br />

TYPE subcommands can be named in any order.<br />

• Each RECORD TYPE command must precede its corresponding DATA LIST command.<br />

• END FILE TYPE must be the last command in the structure.

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

Saved successfully!

Ooh no, something went wrong!