The system variable SysVar.errorCode receives a status code after any of the following events:
The SysVar.errorCode values associated with a given system function are described in relation to the system function, not in the current topic.
SysVar.errorCode is set to 0 if the call, I/O, or system function invocation is successful.
For an overview that includes details on SysVar.errorCode, see Exception handling. The list of possible SysVar.errorCode values is provided in EGL Java™ runtime error codes.