Processing time used by a job

Herman would like to know: How can one programmatically retrieve the total processing unit time (CPU time) used by a job? -- Michelle Davidson, editor,

Answer Wiki

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

by processing the system log : each job when terminates has a message into the system log.
here the challenge is to find the API that retrieve the system log as do DSPLOG


If you want job processing time info, you have to track it. You can process the history log as noted above. It’s not trivial and takes some practice to learn its quirks.

The system function to track this is job accounting. Read the Information Center section on Managing job accounting and review the surrounding sections from the navigation pane on the left-hand side of that page.

If you want to know processing time of “a” job today, you’re going to want to know the processing time used between noon and 1:00 PM next week. Or you’ll want to know how many transactions were processed. Whatever you want will be more easily available if you set it up ahead of time.


Discuss This Question: 2  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.
  • JohnDavid
    Hi Michelle, You can also get more information re: job execution times from job accounting. Do some reading on Information Center about this. This facility is used by Job Accounting software to report on all nice things for billing purposes, etc. The amount of information you require will dictate the source used: history log or job accounting. Best of luck
    5 pointsBadges:
  • TheQuigs
    I've used the system API QUSRJOBI to retrieve this kind of information before. I usually use it for active jobs. So if you need to know the processing time for a completed job, you might need to use job accounting as John stated in his message. I don't remember if you can retrieve job information for a completed job. I'm certain you can't if there's no outupt from the job as the job will effectively be purged from the system. You can find information for QUSRJOBI in the information center. Look up APIs with the API Finder at: for V5R2 or for V5R3
    0 pointsBadges:

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.


Share this item with your network: