Processing time used by a job

435 pts.
Tags:
AS/400
RPG
Herman would like to know: How can one programmatically retrieve the total processing unit time (CPU time) used by a job? -- Michelle Davidson, editor, Search400.com

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 <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaks/rzaksmanagejobaccounting.htm”>Managing job accounting</a> 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.

Tom

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • 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:
    report
  • 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: http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/apifinder.htm for V5R2 or http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/apis/apifinder.htm for V5R3
    0 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following