COBOL/400 APIs
The OPM and ILE COBOL/400(R) APIs let you control run units and error
handling.
Refer to Using COBOL Program to Call
APIs and Error Handler for Example COBOL
Program in the API Examples for illustrations of how to use these APIs.
For a description of how to use the ILE COBOL/400 APIs, refer to the chapter
about error and exception handling in the WebSphere Development Studio: ILE COBOL Programmer"s Guide book.
The COBOL/400 APIs are:
- Change COBOL Main Program (QLRCHGCM) lets you create an additional run unit (1) by assigning a different System/36-compatible COBOL, System/38-compatible COBOL, or iSeries OPM COBOL/400 program to serve as a main program.
- Dump COBOL (QlnDumpCobol) allows you to perform a formatted dump of an ILE COBOL/400 program.
- Retrieve COBOL Error Handler (QLRRTVCE) allows you to retrieve the name of the current or pending COBOL error-handling program.
- Retrieve COBOL Error Handler (QlnRtvCobolErrorHandler) allows you to retrieve the procedure pointer of the current COBOL error-handling procedure.
- Set COBOL Error Handler (QLRSETCE) allows you to specify the identity of a COBOL error-handling program.
- Set COBOL Error Handler (QlnSetCobolErrorHandler) allows you to specify the identity of a COBOL error-handling procedure.
The COBOL/400 exit programs are: