Previous Topic: InstallationNext Topic: Messages


User Exit Module

CA IDMS DMLO gives you the ability to customize a user exit module which can be invoked after each DML command is executed. At installation time the dummy user exit module USDMLXIT is provided. This module simply returns control immediately to the DMLO session.

The calling of the user exit is controlled by the installation parameter option USEREXIT in the USDTPARM module.

Note: For more information, see the appropriate CA IDMS Installation and Maintenance Guide.

The user exit source member Assembler module USDMLXIT is delivered in source and can be customized by the user.

USDMLXIT is dynamically loaded at runtime and invoked by DMLO upon completion of all DML commands. This includes the SCRATCH and QUEUE commands. The module is delivered as a dummy module that simply returns control immediately to the DMLO session via a 'BR R14' instruction.

To customize the module, follow these rules:

  1. Use standard IBM linkage conventions.
  2. DSECT USDGLOB2 is used to pass information to and from USDMLXIT. Change only certain fields in this DSECT. If the restrictions are ignored, results are unpredictable and can cause subsequent DMLO errors. See source member USDGLOB2 for complete details.
  3. Upon return from USDMLXIT to the DMLO session the USERCODE value in USDGLOB2 is processed as follows:
  4. The customized source member USDMLXIT should be assembled and the link edited to create an executable load module named USDMLXIT. The link edit input statements to do this are as follows:
    
    z/OS      INCLUDE OBJLIB(USDMLXIT)
              MODE AMODE(31), RMODE(ANY)
              ENTRY USDMLXIT
              NAME USDMLXI(R)
    
    z/VSE     PHASE USDMLXIT,*
              MODE AMODE(31), RMODE(ANY)
              INCLUDE USDMLXIT
              ENTRY USDMLXIT
    

    See source members USDMLXIT and USDGLOB2 for complete details on the User Exit functionality.