Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Using the EXIT compiler option with CICS and SQL statements

When you compile using suboptions of the EXIT compiler option and you need to translate CICS or SQL 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.

When you use the integrated translators, you can process EXEC CICS and EXEC SQL statements in the exit modules. The following table shows your alternatives for the four exit modules.

Table 1. Actions allowed on CICS and SQL statements in exit modules
Compile with suboption Translate with integrated CICS translator and DB2 coprocessor Translate with separate CICS translator and DB2 coprocessor Actions allowed in module Comments
INEXIT Yes No Can process EXEC CICS and EXEC SQL statements in the INEXIT module The INEXIT module does not get control of the COBOL statements that are generated for the EXEC statements.
No Yes 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 Yes No Can process in the LIBEXIT module the statements that are brought in by the EXEC SQL INCLUDE statements. Can process EXEC CICS source statements in the LIBEXIT module. EXEC SQL INCLUDE statements are processed like COBOL COPY statements.
No Yes 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 statements only by using the INEXIT suboption.
PRTEXIT Yes No Can process the EXEC CICS and EXEC SQL source statements from the SOURCE listing in the PRTEXIT module The PRTEXIT module does not have access to the COBOL source statements that are generated.
No Yes Can process the COBOL SOURCE listing statements that are generated for the EXEC statements in the PRTEXIT module  
ADEXIT Yes No Can process the EXEC CICS and EXEC SQL source statements in the ADEXIT module The ADEXIT module does not have access to the COBOL source statements that are generated.
No Yes Can process the COBOL SYSADATA source statements that are generated for the EXEC statements in the ADEXIT module  

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)