We have created an EOJ rule which is for a started task. The started task has 10 Steps in total and one step calls PGM BPXBATCH (calling USS). Apparently when this step runs the following message is issued:
BPXP024I BPXAS INITIATOR STARTED ON BEHALF OF JOB xxxxxxx
The EOJ rule is being fired when this BPXAS task finishes so there is a duplicate EOJ event.
OPS/MVS
The EOJ events generated by the BPXAS tasks are generated with subsystem OMVS.
So you can include at the beginning of your EOS rule a test to ignore this type of event:
)EOJ XXXX
)PROC
if EOJ.SUBSYS = 'OMVS' then return