The system variable SysVar.sqlcode contains the return code 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.
You can use SysVar.sqlcode in these ways:
rcitem = SysVar.sqlcode;
Related concepts
Segmentation in text applications
SQL support
Related reference
System variables outside of EGL libraries