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
Software/Hardware used:
ASKED:
October 17, 2005 9:13 PM
UPDATED:
November 15, 2009 11:45 AM
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
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