Hello,
in our shop we use CMD rule to stop BMP region used by IOF. Acc. to rule list STATS it is not fired. I want to find the reason why and how to fix it.
From what I see in opslog the event looks like:
Job Name | Time | Date | ASID | MSF ID | MSF DEST | OJobname |
OPSS0160 | 08:46:35 | 22MAR2020 | 0160 | SY3 | SY3 | NONE |
________________________________________________________________________|
MessageNum | Elapsed | SysID | AF | Flags | Disp | OPSF | Conid |
0159586490 | 0000065 | SY | 00 | 000000 | NOA | 8000 | M0008 |
________________________________________________________________________|
Release | Jobnm | Jobid | WTO ID | Token | Xconid |
13.05.00 | NONE | S28997 | 00000000 | | M02000008 |
________________________________________________________________________|
ConsName | IMSID | IMSType| CLS | RouteDesc | TimeStmp | SYSNAME |
OSY3S00 | NONE | NON | NON | 0000 0000 | NONE | SY3 |
________________________________________________________________________|
Length | Special | DSP name | User | UserX | TermName |
017 | | OSY3S00 | NONE | 0000000000000000 | NONE |
________________________________________________________________________|
User ID | Event | Color | Autotokn | Hex Autotokn | Exit |
OPSUSER | CMD | NONE | | 0000000000000000 | MVS |
________________________________________________________________________|
Ruleset.Rulename | Count | Ruleset.Rulename1 | Ruleset.Rulename2 |
HP.CMDOPER | 01 | HP.CMDOPER | NONE.NONE |
________________________________________________________________________|
Ruleset.Rulename3 | Ruleset.Rulename4 | Ruleset.Rulename5 | Address |
NONE.NONE | NONE.NONE | NONE.NONE | 0EBE5E80 |
________________________________________________________________________|
Message ID | Event ID | Route Codes<-->64 65<-->96 97<->128 DESC |
REPLY | REPLY | 00000000 00000000 00000000 00000000 0000 |
________________________________________________________________________|
----+----1----+----2----+----3----+----4----+----5----+----6----+----7 |
R 121,/CHE FREEZE
and the rule which is not fired is:
)CMD /CHE*
)PROC
cmd = cmd.verb
cmdtext = cmd.text
job = cmd.jobname
/* imsid = cmd.imsid */
imsid = substr(job,1,4)
Select
When cmd = '/CHE' & ,
( pos('FREEZE',cmdtext) > 0 | ,
pos('DUMPQ',cmdtext) > 0 | ,
pos('PURGE',cmdtext) > 0 ) then do
do n = 1 to 16
RetCode = opsprm('SHOW','IMS'n'ID')
do while queued() ¬= 0
pull record
say 'SETBMP' record
record_imsid = strip(word(record,5),B,"'")
if record_imsid = imsid then do
T = OPSPRM('SET','IMS'n'INITBMP','NO')
end
end
end
end
Otherwise nop
End
Return
We already have some CMD rules and they work so I suspect that CMD-event definition is wrong.
Any help would be appreciated.
Thank You!