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:
- User profile
- Job description
- In a job (Change Accounting Code (CHGACGCDE)
command)
If it is important to control the assignment of accounting codes,
consider the following:
- Before an accounting code is placed in a user profile, ensure that
the code is valid for a particular user.
- 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.
- 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.