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.

1346 RECORD TYPE<br />

Example<br />

* Specifying case on the record type command for a grouped file.<br />

FILE TYPE GROUPED FILE=HUBDATA RECORD=#RECID 80 CASE=ID 1-5.<br />

RECORD TYPE 1.<br />

DATA LIST /MOHIRED YRHIRED 12-15 DEPT79 TO DEPT82 SEX 16-20.<br />

RECORD TYPE 2.<br />

DATA LIST /SALARY79 TO SALARY82 6-25<br />

HOURLY81 HOURLY82 40-53 (2)<br />

PROMO81 72 AGE 54-55 RAISE82 66-70.<br />

RECORD TYPE 3 CASE=75-79.<br />

DATA LIST /JOBCAT 6 NAME 25-48 (A).<br />

END FILE TYPE.<br />

• CASE on FILE TYPE indicates that the case identification variable is located in columns<br />

1–5. On the third RECORD TYPE command, the CASE subcommand overrides the identifier<br />

location for type 3 records. For type 3 records, the case identification variable is<br />

located in columns 75–79.<br />

MISSING Subcommand<br />

MISSING controls whether the program issues a warning when it encounters a missing<br />

record type for a case. Regardless of whether the program issues the warning, it builds the<br />

case in the working data file with system-missing values for the variables defined on the<br />

missing record.<br />

• The only specification is a single keyword. NOWARN is the default for nested files. WARN<br />

is the default for grouped files. MISSING cannot be used with MIXED files.<br />

• MISSING on RECORD TYPE applies only to those records specified by that RECORD TYPE<br />

command. The treatment of missing records for record types without the MISSING specification<br />

on RECORD TYPE is determined by the MISSING subcommand on FILE TYPE.<br />

• For grouped files, the program checks whether there is a record for each case identification<br />

number. For nested files, the program verifies that each defined case includes one<br />

record of each type.<br />

WARN Issue a warning message when a record type is missing for a case. This is<br />

the default for grouped files.<br />

NOWARN Suppress the warning message when a record type is missing for a case. This<br />

is the default for nested files.<br />

Example<br />

FILE TYPE GROUPED FILE=HUBDATA RECORD=#RECID 80 CASE=ID 1-5.<br />

RECORD TYPE 1.<br />

DATA LIST /MOHIRED YRHIRED 12-15 DEPT79 TO DEPT82 SEX 16-20.<br />

RECORD TYPE 2 MISSING=NOWARN.<br />

DATA LIST /SALARY79 TO SALARY82 6-25<br />

HOURLY81 HOURLY82 40-53 (2) PROMO81 72 AGE 54-55 RAISE82 66-70.<br />

RECORD TYPE 3.<br />

DATA LIST /JOBCAT 6 NAME 25-48 (A).<br />

END FILE TYPE.

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

Saved successfully!

Ooh no, something went wrong!