The job accounting function is not active by default. It requires
a few initial steps to set it up. The following information describes how
to set up job accounting and perform some of the most common tasks associated
with job accounting.
Control the assignment of accounting codes
An important aspect of any data processing application is ensuring that the correct control fields are specified. For job accounting codes, this can require a complex validity-checking function that not only checks for the existence of authentic codes, but also checks which users are allowed to use specific codes.
Display the data collected
After collecting data in the job accounting journal, you need to write the journal entries to a file and display them.
Convert job accounting journal entries
You can use the OUTFILE parameter on the Display
Journal (DSPJRN) command to write the job accounting journal
entries into a database file that you can process.
Recovery and job accounting
If a job ends abnormally, the final accounting entry is written and all previously written accounting entries appear in the journal. If an abnormal system ending occurs, the following accounting data is lost to the last routing step or last end-of-accounting segment, whichever occurred most recently.