This ENF listener user exit routine processes all the qualifier values for the ENF event code.
By checking the qualifier value passed on the parmlist, this exit routine is able to determine which event occurred and process accordingly.
On entry to this listener user exit routine, register 1 points to the address of the input parmlist (mapped by the macro IFAENF37).
*
* Get the input parameter structure and set DSECT basing
L E37@,0(R01) Get Input Parm Structure
USING ENF37,E37@ Set Parm Structure basing
*
*
CLC ENF37QLF(4),ENF37Q00
BNE CHKQ01
WTO 'SMFLSTAL: SMF HAS COMPLETED INITIALIZATION'
B MODTERM
*
*
CHKQ01 EQU *
CLC ENF37QLF(4),ENF37Q01
BNE CHKQ02
WTO 'SMFLSTAL: SMF HAS TERMINATED'
B MODTERM
*
CHKQ02 EQU *