Previous Topic: Default BehaviorNext Topic: Building on z/OS


Customizing the DB2 Message Exit

Copy the default exit to one of your own libraries. The member name is TIRCTIAX. The default exit includes example code for the four possible combinations of calls. There are dynamic and static calls of both DSNTIAR and of DSNTIAC. Simply comment out the default call and remove the comments from the one you want to use.

To statically call DSNTIAR or DSNTIAC, link the routine into the TIRCTIAZ DLL not the Gen application.

To dynamically call DSNTIAR or DSNTIAC build this routine as a non-DLL stand-alone executable and provide a CICS program definition (PPT) for it. This means that you need PPT definitions if you use the default TIRTIARX module. If TIRTIARX is customized to call DSNTIAC instead of DSNTIAR see IBM's CICS and/or DB2 documentation about using DSNTIAC.

When you have completed your modifications, install your exit.

Note: DSNTIAC is shipped as source code and must be assembled. If you intend to use it, see your DB2 or CICS systems programmer to ensure that is has been assembled and that a load module is available. If not, either the install of the application module will fail with an unresolved module at the time of the link if your call is static, or you will abend at runtime if your call is dynamic.