Skip to main content

#XITRTN

The #XITRTN macro is used to include the individual exit routines. Two parameters can be coded on the macro: NAME and COND.

NAME is used to indicate the module name of a particular individual exit. There is no default for NAME and it must be coded if the #XITRTN macro is used.

COND is used to indicate the maximum highest return code from a previous #XITRTN routine that will be tolerated for the current routine to still execute. For example, COND=4 indicates that the current routine should execute if no previous exit routine has returned a return code greater than 4. A default of COND=0 is assumed if no COND parameter is coded on the #XITRTN macro.

#XITRTN macro usage examples would look as follows:

EXIT1    #XITRTN NAME=PSYNCXIT,COND=0
EXIT2    #XITRTN NAME=OURPWXIT,COND=8