The system variable SysVar.sqlState contains the SQL state value for the most recently completed SQL I/O operation. The code is obtained from the SQL communications area (SQLCA) and can vary with the relational database manager.
rcitem = SysVar.sqlState;
Related concepts
Segmentation in text applications
SQL support
Related reference
System variables outside of EGL libraries