SQL/MX 2.x Reference Manual (G06.24+, H06.03+)

Embedded-Only SQL/MX Statements
HP NonStop SQL/MX Reference Manual523725-004
3-43
Considerations for FETCH
FETCH returns a five-character status code to SQLSTATE, whose values include:
For more information on the ANSI SQL:1999 SQLSTATE class and subclass values,
see the SQL/MX Programming Manual for C and COBOL.
00000 The FETCH was successful.
02000 The result table is empty or the end of the table was encountered.
22xxx Data exception condition.