End of data
One common event is that no rows satisfy a query. This
event is signalled by an SQLSTATE code of 02000
and
by a code of 100
in SQLCODE after a SELECT statement.
This code indicates an error or a normal event, depending entirely
on your application. If you are sure a row or rows should satisfy
the query (for example, if you are reading a row using a key value
that you just read from a row of another table), then the end-of-data
code represents a serious failure in the logic of the program. On
the other hand, if you select a row based on a key that a user supplies
or some other source supplies that is less reliable than a program,
a lack of data can be a normal event.