You may use the STRWCH cmd.
it lets you specify MSGs to watch and excecute a program when
the specified MSGs occur.
We use it for several years now to send e-mail / SMS when batch jobs
When a MSG occurs the program checks against a table with MSG Id, User and
time slot and sends e-mail to the relevant users .
(each MSG has it's combination of time and destination users)
If MSG RNQ0102 occurs during the day then 3 people are noticed by mail/SMS
(Operator, Programmer1, Programmer2)
if during the night, then only the operator (and me) gets noticed.