The initial accounting code (up to 15 characters in length) for a job is determined by the value of the ACGCDE (accounting code) parameter in the job description and user profile for the job.
The CRTUSRPRF and CHGUSRPRF commands support the ACGCDE parameter. The default is *BLANK. If all work for a particular user is to be recorded under one accounting code, only user profiles need to be changed. You can change the accounting codes for specific job descriptions by specifying the accounting code for the ACGCDE parameter on the CRTJOBD and CHGJOBD commands. The CHGACGCDE command also allows different accounting codes in a single job.
The Retrieve Job Attributes (RTVJOBA) command and the API's that retrieve job attributes allow you to access the current accounting code in a CL program.