CRE Programmer's Guide

CRE Service Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
6-44
Exception-Handling Functions
spi_ssid
is an optional reference parameter. If present, its address is passed to the
PROCESS_STOP_ system procedure for its spi-ssid parameter.
spi_ssid must
reference a valid 12-character subsystem identifier (ssid). See PROCESS_STOP_
in the
Guardian Procedure Calls Reference Manual for more information. Refer to
the PROCESS_STOP_ procedure in the
Guardian Procedure Calls Reference
Manual for more information about the spi_ssid parameter.
text:text_length
is an optional parameter pair. If present, the string referenced by
text:text_length is passed to the PROCESS_STOP_ system procedure for
its text:length parameter pair.
text and text_length must both be present or
omitted. Refer to the PROCESS_STOP_ procedure in the
Guardian Procedure
Calls Reference Manual for more information about the text:text_length
parameter.
In the TNS CRE environment, CRE_Terminator_ closes your program’s standard files,
calls a language-specific termination function for each language represented in your
program, and calls the PROCESS_STOP_ system procedure.
In the native CRE environment, CRE_Terminator_ closes your program’s standard
files. It then calls a NonStop operating system routine, which calls all standard run-time
library termination routines and global destructors.
For more information about program termination, refer to Section 2, CRE Services
.
Exception-Handling Functions
This subsection describes the functions that support exception handling. Table 6-8 on
page 6-45 lists the functions in this subsection.
Table 6-7. Default Values for Options and Completion Code
completion_
status
Normal Termination Abnormal Termination
Options Specified
and
Options.<15> = 0
completion_
code
Options Not
Specified or
Options.<15> = 1
completion_
code
normal 0 none none
warning 0 1 1
error 1 none 3
trap 1 none 3
fatal 1 none 5