Ending the listener user exit routine

Using the EOT and EOM parameters, you can specify on the ENFREQ macro whether the system should automatically delete the listener user exit routine when the listener's task ends (EOT) or when the address space ends (EOM). If you specify SRBEXIT then you must specify EOM=YES because the exit routine runs in the listener's address space and ends with the listener.

Only certain combinations of EOT and EOM are valid. The following chart shows which combinations are valid.

Table 1. Valid EOT and EOM parameter combinations
EOT EOM Exit type
EOT=YES EOM=YES EXIT Start of changeor SRBEXITEnd of change
EOT=NO EOM=YES EXIT or SRBEXIT
EOT=NO EOM=NO EXIT

For example, to end the exit routine Start of changewhen the listener's task ends or the listener’s address space endsEnd of change, specify EOT=YES and EOM=YES. To end the exit routine when the listener's address space ends, but not when the listener's task ends, specify EOM=YES, EOT=NO. For more information about the EOM and EOT keywords, see z/OS MVS Programming: Authorized Assembler Services Reference EDT-IXG.