There are two level at which errors can be handled in ILE COBOL. First, the condition handlers registered at each priority level have a chance to handle the condition. If the condition remains unhandled when the control boundary is reached, a function check condition is sent. Each ILE COBOL ILE procedure has an ILE condition handler registered at priority level 205 to handle a function check. This function check condition handler will issue a COBOL inquiry message, unless handled by the following bindable APIs:
The Retrieve COBOL Error Handler (QlnRtvCobolErrorHandler) API allows you to retrieve the name of the current ILE COBOL error-handling procedure for the activation group from which the API is called.
The Set COBOL Error Handler (QlnSetCobolErrorHandler) API allows you to specify the identity of an ILE COBOL error-handling procedure for the activation group from which the API is called.
These APIs only affect exception handling within ILE COBOL programs. For detailed information on all of these APIs, refer to the section about COBOL APIs in the CL and APIs section of the Programming category in the iSeries Information Center at this Web site -http://www.ibm.com/eserver/iseries/infocenter.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.