When to use job accounting

Should you use the job accounting function in QHST messages since message numbers CPF1124 and CPF1164 are always available in the QHST log? Or, should you use job accounting? Use the following information to help you determine which method is best for your organization.

Additional information supplied by job accounting

Job accounting has all the information supplied by CPF1164 plus:

The job accounting function is more effective for gathering job accounting statistics if:

  • The resource information regarding database, printer, and communications use is important.
  • Accounting codes are assigned to users or jobs.
  • The information for printed output is important.
  • Job accounting must be done on an accounting segment basis in a job rather than on a complete job basis.
  • The active and suspended time information is needed.

The QHST messages are more effective for gathering job accounting statistics if:

Note: Some statistics recorded in the CPF1164 message and the JB journal entries will not match exactly. This is due mainly to two factors: (1) CPF1164 statistics are recorded slightly before the JB journal statistics and (2) each time an accounting code is changed, rounding occurs for some fields, while rounding occurs only once for CPF1164 messages.
Related concepts
How job accounting works
Security and job accounting
Journal entries for job accounting
About the accounting code
Resource accounting
Resource accounting data
Prestart jobs and job accounting
System job processing for job accounting
Batch processing and job accounting
Interactive processing and job accounting
Printer file accounting
Related information
Job Notification Exit Point