Monitoring Batch Jobs using CL/RPG

Tags:
AS/400
RPG
WRKACTJOB
Can I create a CL/RPG to collect job information and create a percentage completion utility
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

One way is to basically collect start and finish times from the joblog for creating your database. The for querying the data get the current running job attributes, check how much time has elapsed and compare that to total run time from your historical database. You may consider adding the new data to the history as well.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    As long as the batch job provides sufficiently detailed signals or reports of its progress and those signals can be correlated to some completion percentage, then it can be done. I suppose a "signal" or "report" could even be joblog messages.
    35,620 pointsBadges:
    report
  • deepu9321
    You can do that.

    But, I believe Percentage completion of the Job can be computed based on the Job Function. 

    You can check the Job function of all the jobs you want to include for percentage completion. 

    Probably, You need to give more info. 
    4,980 pointsBadges:
    report
  • ToddN2000
    Most likely but it can be a lot of work, Do you have sufficient data on past job history to make the proper calculations? Also to consider, if a job runs for 1 hour on average, that may be easy to compute. If a system halts, interactive query runs amok, or other job runs into a loop or other issue and takes resources away from this job then that 1 hour time is no longer valid for basing the percentage completed.
    133,595 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: