DATA LIST error message

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

DATA LIST error message

Richard Ristow
I ran into this in code I wrote for another posting. Why the warning
message? It looks to me like the data is in complete cases. SPSS draft
output:


NEW FILE.
DATA LIST FREE /ALLDEMO  (A3) DemgName(A10).
BEGIN DATA
     '1-1' 'Eth-Black'   '1-2' 'Eth-Asian'   '1-3' 'Eth-White'
     '1-4' 'Eth-Filpno'  '1-5' 'Eth-Hispan'  '1-6' 'Eth-Other'
     '1-7' 'Eth-NS'
     '2-1' 'Sex-Female'  '2-2' 'Sex-Male'    '2-3' 'Sex-UNKN'
     '3-1' 'Age <25'     '3-2' 'Age  25-35'  '3-3' 'Age  36-50'
     '3-4' 'Age >50'     '3-5' 'Age UNKN'.
END DATA.

 >Warning # 522
 >An unexpected end of file has been found in the middle of reading a
case.
 >The partial case will be ignored.  Check your input for a possible
missing
 >record.

 >Command line: 504  Current case: 16  Current splitfile group: 1
. /**/ LIST.
|-----------------------------|----------------------------|
|Output Created               |19-AUG-2006  01:17:45       |
|-----------------------------|----------------------------|
ALLDEMO DemgName

1-1     Eth-Black
1-2     Eth-Asian
1-3     Eth-White
1-4     Eth-Filpno
1-5     Eth-Hispan
1-6     Eth-Other
1-7     Eth-NS
2-1     Sex-Female
2-2     Sex-Male
2-3     Sex-UNKN
3-1     Age <25
3-2     Age  25-35
3-3     Age  36-50
3-4     Age >50
3-5     Age UNKN

Number of cases read:  15    Number of cases listed:  15
Reply | Threaded
Open this post in threaded view
|

Re: DATA LIST error message

Marta García-Granero
Hi Richard

Could it be the period at the end of the last line of data (before the
END DATA)?

RR> I ran into this in code I wrote for another posting. Why the warning
RR> message? It looks to me like the data is in complete cases. SPSS draft
RR> output:


RR> NEW FILE.
RR> DATA LIST FREE /ALLDEMO  (A3) DemgName(A10).
RR> BEGIN DATA
RR>      '1-1' 'Eth-Black'   '1-2' 'Eth-Asian'   '1-3' 'Eth-White'
RR>      '1-4' 'Eth-Filpno'  '1-5' 'Eth-Hispan'  '1-6' 'Eth-Other'
RR>      '1-7' 'Eth-NS'
RR>      '2-1' 'Sex-Female'  '2-2' 'Sex-Male'    '2-3' 'Sex-UNKN'
RR>      '3-1' 'Age <25'     '3-2' 'Age  25-35'  '3-3' 'Age  36-50'
RR>      '3-4' 'Age >50'     '3-5' 'Age UNKN'.
RR> END DATA.

Happy weekend!

Marta
Reply | Threaded
Open this post in threaded view
|

Re: DATA LIST error message

Richard Ristow
Dear Marta and all,

At 03:10 AM 8/19/2006, Marta García-Granero wrote:

>Could it be the period at the end of the last line of data (before the
>END DATA)?

Oh, good grief. Thank you. Of course, that's it.

(What's the period doing there? The text is from
a VALUE LABELS command, and I wrote the DATA LIST
to read the VALUE LABELS text so I wouldn't have
to type new data lines. Midnight programming:
ingenious, but not clear-headed.)

>RR> I ran into this in code I wrote for another
>posting. Why the warning
>RR> message? It looks to me like the data is in
>complete cases. SPSS draft
>RR> output:
>
>
>RR> NEW FILE.
>RR> DATA LIST FREE /ALLDEMO  (A3) DemgName(A10).
>RR> BEGIN DATA
>RR>      '1-1' 'Eth-Black'   '1-2' 'Eth-Asian'   '1-3' 'Eth-White'
>RR>      '1-4' 'Eth-Filpno'  '1-5' 'Eth-Hispan'  '1-6' 'Eth-Other'
>RR>      '1-7' 'Eth-NS'
>RR>      '2-1' 'Sex-Female'  '2-2' 'Sex-Male'    '2-3' 'Sex-UNKN'
>RR>      '3-1' 'Age <25'     '3-2' 'Age  25-35'  '3-3' 'Age  36-50'
>RR>      '3-4' 'Age >50'     '3-5' 'Age UNKN'.
>RR> END DATA.
>
>Happy weekend!
>Marta

And the same to you, with many thanks,
Richard