To write your own user exit, you can use IBMUEXIT (see the source in Figure 16.) as a model. As you write the exit, make sure it covers the areas of initialization, message filtering, and termination.
As noted in that section, the compiler user exit must be compiled with the RENT option and linked as a DLL.