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.

574 FILE TYPE—END FILE TYPE<br />

FILE Subcommand<br />

FILE specifies a text file containing the data. FILE is not used when the data are inline.<br />

Example<br />

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

• Data are in file TREATMNT. The file type is mixed. The record identification variable<br />

RECID is located in columns 1 and 2 of each record.<br />

RECORD Subcommand<br />

RECORD specifies the name and column location of the record identification variable.<br />

• The column location of the record identifier is required. The variable name is optional.<br />

• If you do not want to save the record type variable, you can assign a scratch variable name<br />

by using the # character as the first character of the name. If a variable name is not specified<br />

on RECORD, the record identifier is defined as the scratch variable ####RECD.<br />

• The value of the identifier for each record type must be unique and must be in the same<br />

location on all records. However, records do not have to be sorted according to type.<br />

• A column-style format can be specified for the record identifier. For example, the<br />

following two specifications are valid:<br />

RECORD=V1 1-2(N)<br />

RECORD=V1 1-2(F,1)<br />

FORTRAN-like formats cannot be used because the column location must be specified<br />

explicitly.<br />

• Specify A in parentheses after the column location to define the record type variable as a<br />

string variable.<br />

Example<br />

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

• The record identifier is variable RECID, located in columns 1 and 2 of the hospital treatment<br />

data file.<br />

CASE Subcommand<br />

CASE specifies a name and column location for the case identification variable. CASE is<br />

required for grouped files and optional for nested files. It cannot be used with mixed files.<br />

• For grouped files, each unique value for the case identification variable defines a case in<br />

the working data file.<br />

• For nested files, the case identification variable identifies the highest-level record of the<br />

hierarchy. The program issues a warning message for each record with a case identification<br />

number not equal to the case identification number on the last highest-level record.<br />

However, the record with the invalid case number is used to build the case.

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

Saved successfully!

Ooh no, something went wrong!