Prestart jobs and job accounting

If your system uses job accounting, the prestart job program should run the Change Prestart Job (CHGPJ) command with the program start request value for the accounting code parameter (CHGPJ ACGCDE(*PGMSTRRQS)) immediately after the program start request attaches to the prestart job.

This action changes the accounting code to the value specified in the user profile associated with the program start request. Immediately before the program finishes handling the program start request, the program should run the Change Prestart Job command (CHGPJ) with the Prestart Job Entry value for the accounting code parameter (CHGPJ ACGCDE(*PJE)). This changes the accounting code back to the value specified in the job description of the prestart job entry.

Related concepts
How job accounting works
When to use job accounting
Security and job accounting
Journal entries for job accounting
About the accounting code
Resource accounting
Resource accounting data
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
Experience report: Job Accounting