Send an email message if a particular job runs longer than 2 hours.
To provide notification if a job exceeds its maximum execution time
execCommand('%WOB._name','%(APPL._name).%APPL._gen',
'ACTION RESET LATEEND("now plus 2 hours")');
When the job is submitted (at run time), the JavaScript script uses the execCommand built-in function to reset the job's end time. The script takes the current time (“now”) and adds the expected execution time of 2 hours.
This solution uses variables for the job name, Application name, and Application generation number to ensure the time for the correct instance of the job is reset.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |