| 1 | Current error-handling exit procedure pointer | Output | Anyptr |
| 2 | Error code | I/O | Char(*) |
The Retrieve COBOL Error Handler (QlnRtvCobolErrorHandler) API allows you to retrieve the procedure pointer of the current COBOL error-handling procedure. You can call it from any ILE programming language; however, this API only retrieves the procedure pointer of the error handling program that is called when an error occurs in an ILE COBOL/400 program.
None.
Valid values are:
| NULL | No current error-handling procedure found. |
| procedure-pointer | The procedure pointer of the error handler. |
The structure in which to return error information. For the format of the structure, see Error code parameter.
| Message ID | Error Message Text |
|---|---|
| CPF3C90 E | Literal value cannot be changed. |
| LNR7074 E | Error code not valid. |
| LNR7075 E | Error addressing API parameters. |
| Top | High-level language APIs | APIs by category |