Command reference / job
CHGACGCDE
Change Accounting Code
Replaces the accounting code of an active or queued job. Jobs already on an output queue are unaffected.
Allowed environments: *ALL.
Positional parameters: 2.
Parameters
JOB
Job name
Enter the name of the job whose accounting code is changed. Note: If no user name or job number is specified, all jobs currently in the system are searched for the job name.
Suggested / special values:
*
*- The job whose accounting code is changed is the job where this command is issued.
name (job name)- Enter the name of the job whose accounting code is changed.
name (user)- Enter the user name that identifies the user profile under which the job is started.
000000-999999- Enter the system-assigned job number.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Number
Number
ACGCDE
Accounting code
Sets the accounting code used for the job.
Suggested / special values:
*SAME, *BLANK, *USRPRF
*SAME- Keep the current accounting code; accounting information is recorded in a journal and a new accounting segment is started.
*BLANK- The accounting code is changed to all blanks.
*USRPRF- When the job being changed is the job in which this command is running, the accounting code for the next accounting segment is obtained from the user profile under which this thread was initially running.
character-value- Enter the 15-character accounting code used for the next accounting segment. The accounting code may contain alphabetic or numeric characters. Blanks may also be used if the accounting code is enclosed in apostrophes.
DUPJOBOPT
Duplicate job option
Sets the action taken when duplicate jobs are found by this command.
Allowed values:
*SELECT, *MSG
*SELECT- The selection display is shown when duplicate jobs are found during an interactive session. Otherwise, a message is issued.
*MSG- A message is issued when duplicate jobs are found.
Examples
CHGACGCDE JOB(123581/USER47/WS1) ACGCDE(123456789)
Changes the accounting code for job WS1, with user profile USER47, and job number 123581, to accounting code 123456789 for the next accounting segment. A job resource usage journal entry is written to the system accounting journal QSYS/QACGJRN.
Generated from os/cl/catalog/CHGACGCDE.json and os/cl/help/CHGACGCDE.json.