z/OS Language Environment Writing Interlanguage Communication Applications
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Condition-handling responses

z/OS Language Environment Writing Interlanguage Communication Applications
SA38-0684-00

Table 1 and Table 2 list condition-handling responses, as referenced in the condition handling sections of the pairwise chapters.

Table 1. Language Environmentdefault responses to unhandled conditions. Language Environment's default responses to unhandled conditions fall into one of two types, depending on whether the condition was signaled using CEESGL and an fc parameter, or it came from any other source.
Severity of condition Condition signaled by user in a call to CEESGL with an fc Condition came from any other source
0 (Informative message) Return CEE069 condition token, and resume processing at the next sequential instruction.

See the fc table for CEESGL (z/OS Language Environment Programming Reference) for a description of the CEE069 condition token.

Resume without issuing message.
1 (Warning message) Return CEE069 condition token, and resume processing at the next sequential instruction. If the condition occurred in a stack frame associated with a COBOL program, resume and issue the message. If the condition occurred in a stack frame associated with a non-COBOL program, resume without issuing message.
2 (Program terminated in error) Return CEE069 condition token, and resume processing at the next sequential instruction. Promote condition to T_I_U, redrive the stack, then terminate the thread if the condition remains unhandled. Message issued if TERMTHDACT(MSG) is specified.
3 (Program terminated in severe error) Return CEE069 condition token, and resume processing at the next sequential instruction. Promote condition to T_I_U, redrive the stack, then terminate the thread if the condition remains unhandled. Message issued if TERMTHDACT(MSG) is specified.
4 (Program terminated in critical error) Promote condition to T_I_U, redrive the stack, then terminate the thread if the condition remains unhandled. Message issued if TERMTHDACT(MSG) is specified. Promote condition to T_I_U, redrive the stack, then terminate the thread if the condition remains unhandled. Message issued if TERMTHDACT(MSG) is specified.

Table 2 contains default C language error handling semantics.

Table 2. Cconditions and default system actions
C Condition Origin Default action

SIGILL

Execute exception operation
exception privileged operation
raise(SIGILL)

Abnormal termination
(return code=3000)

SIGSEGV

Addressing exception
protection exception
specification exception
raise(SIGSEGV)

Abnormal termination
(return code=3000)

SIGFPE

Data exception
decimal divide
exponent overflow
fixed point divide
floating point divide
raise(SIGFPE)

Abnormal termination
(return code=3000)

SIGABRT

abort() function
raise(SIGABRT)

Abnormal termination
(return code=2000)

SIGABND

Abend the function

Abnormal termination
(return code=3000)

SIGTERM

Termination request
raise(SIGTERM)

Abnormal termination
(return code = 3000)

SIGINT

Attention condition

Abnormal termination
(return code = 3000)

SIGIOERR

I/O errors

Ignore the condition

SIGUSR1

User-defined condition

Abnormal termination
(return code=3000)

SIGUSR2

User-defined condition

Abnormal termination
(return code=3000)

Masked

Exponent overflow
fixed-point underflow
significance

These exceptions are disabled.
They are ignored during the
condition handling process,
even if you try to enable them
using the CEE3SPM callable
service.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014