I take it that you want this to run outside the user’s program.
You could capture a picture of the active jobs every … minute? if the same job is in wait state it’s a candidate.
Perhaps you could capture the number of I/O’s on the current display file and compare to the last time?
I don’t know of anything which does this.
The RPG programs and DDS can be changed to time.
Here is a good source for this.
Thanks Phil. That helps.