42 Out of DATA

If your program tried to read more items of DATA than there were in the data list, this error will be generated. You can use RESTORE to return the data pointer to the first data statement (or to a particular line with a data statement) if you wish. The following example tries to read four items of data, when only three have been defined.

10 RESTORE
20 READ A,B,C,D
30 DATA 1,2,3