Where allowed to run: All environments (*ALL) Threadsafe: Conditional |
Parameters Examples Error messages |
The Change Accounting Code (CHGACGCDE) command changes the accounting code of a job. The job can be on a job queue, or it can be active in a subsystem. This command has no effect if the job is on an output queue. If the command is entered when system value QACGLVL indicated that job accounting (*JOB) should be performed when the job entered the system, accounting information is journaled and a new accounting segment is started for the job. If the command is entered when the system value QACGLVL did not indicate job accounting should be performed, the accounting code is changed, but no journal entry is made. More information is in the Work Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Restrictions:
The job user identity is the name of the user profile by which a job is known to other jobs. More information about the job user identity is in the Work Management information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
JOB | Job name | Single values: * Other values: Qualified job name |
Optional, Positional 1 |
Qualifier 1: Job name | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
ACGCDE | Accounting code | Character value, *SAME, *BLANK | Optional, Positional 2 |
DUPJOBOPT | Duplicate job option | *SELECT, *MSG | Optional |
Top |
Specifies the name of the job whose accounting code is changed.
Single values
Qualifier 1: Job name
Qualifier 2: User
Qualifier 3: Number
Note: If no user name or job number is specified, all jobs currently in the system are searched for the job name. If more than one occurrence of the specified name is found, a qualified job name must be provided either explicitly or through the selection display. Refer to the Duplicate job option (DUPJOBOPT) parameter for more information.
Top |
Specifies the accounting code used for the job.
Top |
Specifies the action taken when duplicate jobs are found by this command.
Top |
CHGACGCDE JOB(123581/USER47/WS1) ACGCDE(123456789)
This command 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.
Top |
*ESCAPE Messages
Top |