George that sample is of no use.. it does not support stacked JES2 events, as the rule only fires ONCE on the first cmd , like this:
Date TIME Job Name Evn ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+--
11MAR 08:47:29 Q811034 MSG OPS1181O Q811034 OPSS (*Local*) MVS N/A N/A $di1;ti1,c=h;pi1;ti1,c=i
11MAR 08:47:29 Q811034 MSG $DI1;TI1,C=H;PI1;TI1,C=I
11MAR 08:47:29 Q811034 CMD $DI1;TI1,C=H;PI1;TI1,C=I
11MAR 08:47:29 Q811034 MSG OPS1000J cmd=$DI1;TI1,C=H;PI1;TI1,C=I
11MAR 08:47:29 JES2 MSG $HASP892 INIT(1) STATUS=DRAINED,CLASS=H,NAME=1
11MAR 08:47:29 JES2 MSG $HASP892 INIT(1) STATUS=DRAINED,CLASS=H,NAME=1
11MAR 08:47:29 JES2 MSG $HASP892 INIT(1) STATUS=DRAINED,CLASS=H,NAME=1
11MAR 08:47:29 JES2 MSG $HASP892 INIT(1) STATUS=DRAINED,CLASS=I,NAME=1
So we need to parse the cmd.text on the CMDDELIM char (defaults ;) and then review each command in there.
Not a big deal and easy to achieve.
Just verified and the reference to JESSTACK sample was already in 11.5 doc (2006!)
I still have the old 4.4 (and even 4.3!) docs, but they're in bookmanager format which I currently cannot read :) (Edit: i installed IBM Softcopy Reader, and verified, but could not find reference to that sample in there ;0, as far as i can recall, there was no actual 5.1 version so the 11.5 must have been the first one referring it.)