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.

580 FILE TYPE—END FILE TYPE<br />

BEGIN DATA<br />

0001 1 322 1 IL 3/13/88 /* accident record<br />

0001 3 1 34 M 1 FR 3 /* person record<br />

0001 2 2 16IL 322F /* vehicle record<br />

0001 3 1 22 F 1 FR 11 /* person record<br />

0001 3 2 35 M 1 FR 5 /* person record<br />

0001 3 3 59 M 1 BK 7 /* person record<br />

0001 2 3 21IN 146M /* vehicle record<br />

0001 3<br />

END DATA.<br />

1 46 M 0 FR 0 /* person record<br />

• The data contain records for one accident. The first record is a type 1 (accident) record,<br />

and the second record is a type 3 (person) record. However, there is no type 2 record, and<br />

therefore no vehicle associated with the first person. The person may have been a pedestrian,<br />

but it is also possible that the vehicle record is missing.<br />

• One case is built for each person record. The first case has missing values for the variables<br />

specified on the vehicle record.<br />

• Keyword WARN is specified on MISSING. A warning message is issued for the missing<br />

record.<br />

ORDERED Subcommand<br />

ORDERED indicates whether the records are in the same order as they are defined on the<br />

RECORD TYPE commands. Regardless of the order of the records in the data file and the<br />

specification on ORDERED, the program builds cases in the working data file with records in<br />

the order defined on the RECORD TYPE commands.<br />

• ORDERED can be used only for grouped files.<br />

• The only specification is keyword YES or NO.<br />

• If YES is in effect but the records are not in the order defined on the RECORD TYPE<br />

commands, the program issues a warning for each record that is out of order. The program<br />

still uses these records to build cases.<br />

YES Records for each case are in the same order as they are defined on the RECORD<br />

TYPE commands. This is the default.<br />

NO Records are not in the same order within each case.<br />

Example<br />

* A grouped file with records out of order.<br />

FILE TYPE GROUPED RECORD=#TEST 6 CASE=STUDENT 1-4 MISSING=NOWARN<br />

ORDERED=NO.<br />

RECORD TYPE 1.<br />

DATA LIST /ENGLISH 8-9 (A).<br />

RECORD TYPE 2.<br />

DATA LIST /READING 8-10.<br />

RECORD TYPE 3.<br />

DATA LIST /MATH 8-10.<br />

END FILE TYPE.

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

Saved successfully!

Ooh no, something went wrong!