Here is a work-in-progress list of constant names for the SQLSTATE codes in RPG.
D GoodSQLRead C Const('00000') D SQLDateError C Const('01535') D SQLEOF C Const('02000')