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.

1436 REREAD<br />

Example<br />

* Reading both FIXED and LIST input with REREAD.<br />

INPUT PROGRAM.<br />

DATA LIST NOTABLE FIXED/ A 1-14(A). /*Read the FIXED portion<br />

REREAD COLUMN = 15.<br />

DATA LIST LIST/ X Y Z. /*Read the LIST portion<br />

END INPUT PROGRAM.<br />

* The value 1 on the first record is in column 15.<br />

LIST.<br />

BEGIN DATA<br />

FIRST RECORD 1 2 3 -1 -2 -3<br />

NUMBER 2 4 5<br />

THE THIRD 6 7 8<br />

#4<br />

FIFTH AND LAST9 10 11<br />

END DATA.<br />

• Columns 1–14 are read in FIXED format. REREAD then resets the pointer to column 15.<br />

Thus, beginning in column 15, values are read in LIST format.<br />

• The second DATA LIST specifies only three variables. Thus, the values –1, –2, and –3 on<br />

the first record are not read.<br />

• The program generates a warning for the missing value on record 2 and a second warning<br />

for the three missing values on record 4.<br />

• On the fifth and last record there is no delimiter between value LAST and value 9. REREAD<br />

can still read the 9 in LIST format.

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

Saved successfully!

Ooh no, something went wrong!