Using the user-exit work area
When you use one of the user exits, the compiler
provides a work area in which you can save the address of
GETMAIN
storage obtained by the exit module.
Having such a work area lets the module be reentrant.
The user-exit work area consists of 6 fullwords that reside on a fullword boundary. These fullwords are initialized to binary zeros before the first exit routine is invoked. The address of the work area is passed to the exit module in a parameter list. After initialization, the compiler makes no further reference to the work area.
The words in the user-exit work area are used by the individual exit modules as shown in the following table.
Word number | Used by module: |
---|---|
1 | INEXIT |
2 | LIBEXIT |
3 | PRTEXIT |
4 | ADEXIT |
5 | (Reserved) |
6 | MSGEXIT |