Using the EXIT compiler option with CICS, SQL and SQLIMS statements

When you compile using suboptions of the EXIT compiler option, and your program contains EXEC CICS, EXEC SQL, or EXEC SQLIMS statements, the actions that you can take in the exit modules depend on whether you use the separate CICS® translator and Db2® precompiler, or the integrated CICS translator and Db2 coprocessor.

If the program contains EXEC SQLIMS statements, the actions that you can take in the exit modules are the actions that are listed for the integrated translator.

The following table shows which actions you can take in the exit modules depending on whether you use the integrated or separate translators.

Table 1. Actions possible in exit modules for CICS, SQL and SQLIMS statements
Compile with suboption Translated with integrated or separate CICS and Db2 translators? Possible actions Comments
INEXIT Integrated Can process EXEC CICS, EXEC SQL, and EXEC SQLIMS statements in the INEXIT module The INEXIT module does not get control of the COBOL statements that are generated for the EXEC statements.
Separate Can process the COBOL statements that are generated for the EXEC statements in the INEXIT module You can change the generated statements in the INEXIT module, but doing so is not supported by IBM®.
LIBEXIT Integrated Can process in the LIBEXIT module the statements that are brought in by the EXEC SQL INCLUDE and EXEC SQLIMS INCLUDE statements. Can process EXEC CICS source statements in the LIBEXIT module. EXEC SQL INCLUDE and EXEC SQLIMS INCLUDE statements are processed like COBOL COPY statements.
Separate Can process the COBOL statements that are generated for the EXEC CICS statements in the LIBEXIT module You can process the input statements that are brought in by the EXEC SQL INCLUDE and SQLIMS INCLUDE statements only by using the INEXIT suboption.
PRTEXIT Integrated Can process the EXEC CICS , EXEC SQL, and EXEC SQLIMS source statements from the SOURCE listing in the PRTEXIT module The PRTEXIT module does not have access to the COBOL statements that are generated.
Separate Can process the COBOL SOURCE listing statements that are generated for the EXEC statements in the PRTEXIT module  
ADEXIT Integrated Can process the EXEC CICS, EXEC SQL, and EXEC SQLIMS source statements in the ADEXIT module The ADEXIT module does not have access to the COBOL statements that are generated.
Separate Can process the COBOL SYSADATA statements that are generated for the EXEC statements in the ADEXIT module  
MSGEXIT Integrated Can process CICS and Db2 messages in the MSGEXIT module  
Separate Cannot process CICS and Db2 messages in the MSGEXIT module Messages from CICS are shown in the separate CICS translator listing; messages from Db2 are shown in the Db2 precompiler listing.