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


C to PL/I condition handling

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

This section offers two scenarios of condition handling behavior in a C to PL/I ILC application. If an exception occurs in a C routine, the set of possible actions is as described in Exception occurs in C. If an exception occurs in a PL/I routine, the set of possible actions is as described in Exception occurs in PL/I.

Keep in mind that if there is a PL/I routine currently active on the stack, PL/I language semantics can be applied to handle conditions that occur in non-PL/I routines within an ILC application. For example, PL/I semantics apply to Language Environment hardware conditions that map directly to PL/I conditions such as ZERODIVIDE, even if they occur in a non-PL/I routine. Also, PL/I treats any unknown condition of severity 2 or greater as the ERROR condition. In a case in which a C-specific condition of severity 2 or greater is passed to a PL/I stack frame, an ERROR ON-unit can handle it on the first pass of the stack.

See z/OS Language Environment Programming Guide for a detailed description of Language Environment condition handling.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014