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.

Accounting codes can be assigned in the following areas:
If it is important to control the assignment of accounting codes, consider the following:
  1. Before an accounting code is placed in a user profile, ensure that the code is valid for a particular user.
  2. Control the changing of accounting codes on the Change Job Description (CHGJOBD) command by giving only the security officer authority to the CHGACGCDE command.
    • Or, use the CHGACGCDE command to allow users to change the job accounting code of their own or another job. To change another job, the user must also have the special authorization of *JOBCTL.
  3. Use a CL program and command to prevent changing accounting codes for a job on the job queue or for one job to change the accounting code of another job. For example, the CHGACGCDE command would be privately authorized and included in a CL program where it only changed the current job (such as when JOB(*) is specified). The command would be authorized appropriately.
Related concepts
Security and job accounting