1 | Current or pending error-handling exit program name | Output | Char(20) |
2 | Scope of error-handling exit program | Input | Char(1) |
3 | Error code | I/O | Char(*) |
The Retrieve COBOL Error Handler (QLRRTVCE) API allows you to retrieve the name of the current or pending COBOL error-handling program. You can call it from any programming language; however, this API only retrieves the name of the error handling program that is called when an error occurs in an OPM COBOL/400 program.
None.
The qualified name of the error-handling program for the current or pending COBOL run unit.
The 20 characters of this parameter are:
1-10 | The name of the program object. Valid values are:
|
||||
11-20 | The library where the program object existed. The valid value is:
|
The program can apply to a current or pending run unit.
Valid values are:
C | Current COBOL run unit |
P | Pending COBOL run unit |
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. |
LBE7040 E | Format of error code parameter is not correct. |
LBE7051 E | Scope parameter not valid. |
LBE7052 E | Run unit specified for error handler does not exist. |
LBE7055 E | Severe error while addressing parameter list. The API did not complete. |
Top | High-level language APIs | APIs by category |