Overview

JADE provides exit values that apply to JADE programs and utilities. These exit values enable JADE administrators to develop tools that can take appropriate actions based on the exit values of the programs.

JADE programs can return exit values in the range of zero (0) through 2^32. JADE programs generally returned zero (0) for success or the JADE error number if a problem occurs.

Standard exit values are limited to the range 0 through 127. Any value above this range is reserved by the operating system. You can derive the signal number that caused the program to exit by subtracting 128 from the exit value; for example, an exit value of 139 indicates that the program exited because it received a fatal signal 11 (SIGSEGV - Invalid memory reference).

Using standard exit values, ranges of JADE error numbers are grouped into a common generic exit value. In addition, a range of exit values is set aside for warnings, enabling a program to return information without it being regarded as a fatal problem.

JADE programs or utilities default to using current exit values, or the generic exit values by setting an initialization file parameter. For details, see "Enabling the Use of Generic Exit Values for Windows", in the following section.

Using generic exit values does not impact on performance of your JADE programs or utilities. It gives the site administrator the ability to write standard support tools.