The system variable VGVar.sqlerrmc contains the error message associated with the return code in SysVar.sqlcode. VGVar.sqlerrmc is obtained from the SQL communications area (SQLCA) and can vary with the relational database manager.
VGVar.sqlerrmc has no meaning for the JDBC environment.
You can use VGVar.sqlerrmc in these ways:
myItem = VGVar.sqlerrmc;
Related concepts
Segmentation in text applications
SQL support
Related reference
sqlca
System variables outside of EGL libraries