errorCode

The system variable SysVar.errorCode receives a status code after any of the following events:

You can use SysVar.errorCode in these ways:

SysVar.errorCode is set to 0 if the call, I/O, or system function invocation is successful.

The characteristics of SysVar.errorCode are as follows:
Primitive type
CHAR
Data length
8
Is value always restored after a converse?
Yes

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.

Example

  if (SysVar.errorCode == "00000008")
	  exit program;
  end
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.