Using dynamic exits services

The CSVDYNEX macro provides exits and controls their use; it also provides a way for you to associate one or more exit routines with those exits. You might be familiar with system installation exits that offer your programs an opportunity to interrupt the system's processing for any number of good reasons; generally the reason is for the system to obtain information on which to base its processing. Often, however, programs or vendor products take advantage of an installation exit to do processing of their own. CSVDYNEX allows you to define exits and control their use just as the system does when it offers installation exits.

The dynamic exits facility is a set of services implemented by:

An installation can use any of these methods to control dynamic exits. For example, an exit routine can be associated with an exit using the CSVDYNEX ADD request, the SETPROG EXIT,ADD operator command, or the EXIT statement of PROGxx.

Through the CSVDYNEX macro you can define an exit, control its use, and associate exit routines with it. None of these actions require a system IPL. The macro is of interest to two kinds of applications:

The same application might be both exit provider and exit associator.