CRE Programmer's Guide

CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
6-43
CRE_Terminator_
The meanings of completion codes are:
CRE^Completion^normal
specifies that your program completed either by reaching the end of its main
routine or by invoking a language-specific normal termination verb such as
STOP RUN in COBOL.
CRE^Completion^warning
specifies that your program reported warnings during its execution.
CRE^Completion^error
specifies that termination was due to a logic error in your program.
CRE^Completion^trap
specifies that termination was due to a trap (other than an arithmetic overflow
trap, for which CRE^Completion^error is the correct completion status).
CRE^Completion^fatal
specifies that the CRE or a run-time library detected an internal error (for
example, data corruption) within its own environment.
options
if present, is passed to the PROCESS_STOP_ system procedure as its options
parameter. If you do not specify
options, the CRE derives a value. See
Table 6-7
on page 6-44 for derived values. Refer to the PROCESS_STOP_
procedure in the
Guardian Procedure Calls Reference Manual for more information
about the
options parameter.
completion_code
if present, is passed to the PROCESS_STOP_ system procedure as its
completion-code parameter. If you do not specify
completion_code, the CRE
derives a value. See Table 6-7
on page 6-44 for derived values. Refer to the
PROCESS_STOP_ procedure in the
Guardian Procedure Calls Reference Manual
for more information about the
completion_code parameter.
termination_info
if present, is passed to the PROCESS_STOP_ system procedure for its
termination-info parameter. Refer to the PROCESS_STOP_ procedure in the
Guardian Procedure Calls Reference Manual for more information about the
termination_info parameter.