Rather than maintaining some sort of historical database, you could consider 
putting the "estimated elapsed time" responsibility back on the submitter/owner 
of the job.

A cheap and cheerful solution could be something like :

(1) Agree a local naming convention for the "UJOBCORR" keyword on the jobcard 
to place the job into an elapsed time bucket.
(2) Periodically examine the active jobs and compare elapsed time with the 
UJOBCORR value (if present) and issue warnings if not within the bucket time 
range.

You could get the information for (2) easily using SDSF REXX

Rob Scott
Rocket Software


-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Jantje.
Sent: 11 February 2022 16:19
To: [email protected]
Subject: Batch job elapsed time baseline and alerts

EXTERNAL EMAIL





Esteemed listers,

I have been tasked to put a procedure in place that will generate an alert when 
a batch job "takes longer than usual" to complete. Yes, I know, that is a 
rather vaguely stated requirement...

I know I can find figures about the elapsed time of a batch job in one of the 
SMF records. I think I can build a database of historic runtimes and with a bit 
of thought, I am sure I can come up with a query that will list me the 
"outliers".

But in order to generate an alert when a job takes too long, I will need some 
mechanism that gives me the information about that job while it is still 
running. And while I could perhaps interrogate the system (although I don't 
have a clear idea on how to actually do that) every so often about the running 
jobs and compare the time taken of each running job to the database, I am 
afraid that would take far too much resources. Indeed, with several hundreds if 
not thousands jobs running at any give time, the task of getting all the 
figures of these running jobs and comparing this to the database will 
definitely not be cheap in system resources.

We don't have any budget for vendor products, I am afraid...

And we're short of MSU's...

Any suggestions?

Thanks and very best regards,

Jantje.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ 
Main Office Toll Free Number: +1 855.577.4323
Contact Customer Support: 
https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport
Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - 
http://www.rocketsoftware.com/manage-your-email-preferences
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================

This communication and any attachments may contain confidential information of 
Rocket Software, Inc. All unauthorized use, disclosure or distribution is 
prohibited. If you are not the intended recipient, please notify Rocket 
Software immediately and destroy all copies of this communication. Thank you.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to