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.

RECORD TYPE<br />

For mixed file types:<br />

RECORD TYPE {value list} [SKIP]<br />

{OTHER }<br />

For grouped file types:<br />

RECORD TYPE {value list} [SKIP] [CASE=col loc]<br />

{OTHER }<br />

[DUPLICATE={WARN }] [MISSING={WARN }]<br />

{NOWARN} {NOWARN}<br />

For nested file types:<br />

RECORD TYPE {value list} [SKIP] [CASE=col loc]<br />

{OTHER }<br />

[SPREAD={YES}] [MISSING={WARN }]<br />

{NO } {NOWARN}<br />

Example<br />

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

RECORD TYPE 23.<br />

DATA LIST /SEX 5 AGE 6-7 DOSAGE 8-10 RESULT 12.<br />

END FILE TYPE.<br />

BEGIN DATA<br />

21 145010 1<br />

22 257200 2<br />

25 235 250 2<br />

35 167 300 3<br />

24 125150 1<br />

23 272075 1<br />

21 149050 2<br />

25 134 035 3<br />

30 138 300 3<br />

32 229 500 3<br />

END DATA.<br />

Overview<br />

RECORD TYPE is used with DATA LIST within a FILE TYPE—END FILE TYPE structure to<br />

define any one of the three types of complex raw data files: mixed files, which contain<br />

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

which contain several types of records with a defined relationship among the record types;<br />

or grouped files, which contain several records for each case with some records missing<br />

or duplicated (see FILE TYPE for more complete information). A fourth type of complex<br />

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

1340

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

Saved successfully!

Ooh no, something went wrong!