ok the hour thing is not needed ...but there is just one piece i am having a problem with ... here is the first of 10 rules that look the same except the job_name definitions.
The problem I am having is I need for the jobs to have their own counters... I know I can do a cut and paste and have the same rule identify each one individually ... but that seems like a waste of time and effort ... is there a way to variablize ( is that a word

...) the counter and repeat count to be the job_name ... I guess I am just used to shell scripting and using variable to make everything a little easier to view and read.
/*
-----------------------------------------------------
severity escalation rules for 10a min events
-----------------------------------------------------
*/
rule: events_10mins_a_rl:
(
description: 'severity escalation rule',
event: _event of_class within ['TWS_Job_Abend']
where [
status: equals 'OPEN',
job_name: _job_name within ['PE11DHEX','PE11NREQ','PE11SML1','PR
11DDLC','PR11DPOS','PR11REPR','PR11RIDC','PR11SDM1','PR11SDM1','PR11SWF1','PR11T
RFC','PW11GRID','PW11RDDU','PW11TRFC'],
hostname: _hostname,
sub_source: _sub_source,
sub_origin: _sub_origin
],
reception_action: events_10mins_a_ra:
(
first_duplicate( _event, event: _events_10mins_a_ev
where [
status: outside ['CLOSED'],
job_name: equals _job_name,
hostname: equals _hostname,
sub_source: equals _sub_source,
sub_origin: equals _sub_origin
],
_event - 620 - 620),
add_to_repeat_count( _events_10mins_a_ev, 1),
drop_received_event
),
reception_action: events_10mins_a_ra1:
(
set_timer( _event, 620, 'events_10mins_a_ra1'),
set_event_status( _event, 'ACK'),
set_event_severity( _event, 'HARMLESS')
)
).
/*
-------------------------------------------------------------------
escalation timer rules for 10a min events
-------------------------------------------------------------------
*/
timer_rule: events_10mins_a_timer_rl:
(
description: 'more than 2 events within 10 minutes',
event: _event of_class within ['TWS_Job_Abend']
where [
status: equals 'ACK',
job_name: _job_name within ['PE11DHEX','PE11NREQ','PE11SML1','PR
11DDLC','PR11DPOS','PR11REPR','PR11RIDC','PR11SDM1','PR11SDM1','PR11SWF1','PR11T
RFC','PW11GRID','PW11RDDU','PW11TRFC'],
repeat_count: outside [0,1]
],
timer_info: equals 'events_10mins_a_ra1',
action: events_10mins_a_ac:
(
set_event_severity( _event, 'CRITICAL'),
change_event_status( _event, 'OPEN')
)
).
Thank you for any help .... Gerry