Batch processing and job accounting

 

Any batch job that is submitted using the Submit Job (SBMJOB) command automatically uses the same accounting code as the job that submitted the batch job. When the SBMJOB command is used, the accounting codes cannot be overridden regardless of how the job description entry is coded.

If you want the batch job to operate under an accounting code other than that of the submitting job, a Change Accounting Code (CHGACGCDE) command should be issued either:

Batch jobs submitted using a reader or a Submit Database Job (SBMDBJOB) command use the accounting code specified in the job description for the batch job. If the job description specifies ACGCDE(*USRPRF), the accounting code is taken from the user profile used for the job.

 

Parent topic:

Job accounting

Related concepts
How job accounting works When to use job accounting Security and job accounting About the accounting code Resource accounting Resource accounting data Prestart communications jobs and job accounting System job processing for job accounting Interactive processing and job accounting Printer file accounting Journal entries for job accounting

Related information
Job Notification Exit Point