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.

Example<br />

RECORD TYPE 1345<br />

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

WILD=NOWARN.<br />

RECORD TYPE 1.<br />

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

RECORD TYPE OTHER SKIP.<br />

END FILE TYPE.<br />

• The program reads variables from type 1 records and skips all other types.<br />

• WILD=NOWARN on the FILE TYPE command suppresses the warning messages that is<br />

issued by default for undefined record types for grouped files. Keyword OTHER cannot<br />

be used when the default WILD=WARN specification is in effect.<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,3 SKIP.<br />

END FILE TYPE.<br />

• Record type 1 is defined for each case, and record types 2 and 3 are skipped.<br />

• WILD=WARN (the default) on FILE TYPE GROUPED is in effect. The program therefore<br />

issues a warning message for any record types it encounters other than types 1, 2, and 3.<br />

No warning is issued for record types 2 and 3 because they are explicitly specified on a<br />

RECORD TYPE command.<br />

CASE Subcommand<br />

CASE specifies the column locations of the case identification variable when that variable<br />

is not in the location defined by the CASE subcommand on FILE TYPE.<br />

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

command. The identifier for record types without CASE on RECORD TYPE must be in the<br />

location specified by CASE on FILE TYPE.<br />

• CASE can be used for nested and grouped files only. CASE cannot be used for mixed files.<br />

• CASE can be used on RECORD TYPE only if a CASE subcommand is specified on FILE<br />

TYPE.<br />

• The format type of the case identification variable must be the same on all records, and<br />

the same format must be assigned on the RECORD TYPE and FILE TYPE commands. For<br />

example, if the case identification variable is defined as a string on FILE TYPE, it cannot<br />

be defined as a numeric variable on RECORD TYPE.

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

Saved successfully!

Ooh no, something went wrong!