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.

418 DATA LIST<br />

the second case, POSTPOS has value 7 and NWINS has value 5, and so on. The working<br />

data file will contain eight cases.<br />

• The two commas without intervening space after the data value 3 indicate a missing data<br />

value.<br />

Example<br />

* Data in list format.<br />

DATA LIST LIST (",")/ POSTPOS NWINS.<br />

BEGIN DATA<br />

2,19<br />

7,5<br />

10,25<br />

5,17<br />

8,11<br />

3,<br />

6,8<br />

1,29<br />

END DATA.<br />

• This example defines the same data as the previous example, but LIST is used because<br />

each case is recorded on a separate record. FREE could also be used. However, LIST is<br />

less prone to errors in data entry. If you leave out a value in the data with FREE format,<br />

all values after the missing value are assigned to the wrong variable. Since LIST format<br />

reads a case from each record, a missing value will affect only one case.<br />

• A comma is specified as the delimiter between values.<br />

• Since line endings are interpreted as delimiters between values, the second comma after<br />

the value 3 (in the sixth line of data) is not necessary to indicate that the value of NWINS<br />

is missing for that case.<br />

TABLE and NOTABLE Subcommands<br />

TABLE displays a table summarizing the variable definitions supplied on DATA LIST. NOTABLE<br />

suppresses the summary table. TABLE is the default.<br />

• TABLE and NOTABLE can be used only for fixed-format data.<br />

• TABLE and NOTABLE must be separated from other DATA LIST subcommands by at least<br />

one blank or comma.<br />

• TABLE and NOTABLE must precede the first slash, which signals the beginning of variable<br />

definition.<br />

RECORDS Subcommand<br />

RECORDS indicates the number of records per case for fixed-format data. In the variable<br />

definition portion of DATA LIST, each record is preceded by a slash. By default, DATA LIST<br />

reads one record per case.<br />

• The only specification on RECORDS is a single integer indicating the total number of<br />

records for each case (even if the DATA LIST command does not define all the records).

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

Saved successfully!

Ooh no, something went wrong!