Submit Exit Processing Flow

The following figure illustrates the execution order of the SUBMIT command:

The Submit exit processing flow is:

  1. After you issue a IBM® Connect:Direct® SUBMIT command or SUBMIT statement, the API SUBMIT command processor calls the stage 1 Submit exit.
  2. If the submit is successful, the API SUBMIT command processor calls the DTF SUBMIT command processor.
  3. The DTF SUBMIT command processor calls the stage 2 Submit exit.

IBM Connect:Direct provides a sample Submit exit in $CD.SDGASAMP library, called DGAXSUBX, which you can use as a model for either the stage 1 (DMCXSUBM) or stage 2 (SUBMIT.EXIT = modname) exit. In most cases, you only need to run the stage 1 Submit exit.