The ACCT parameter specifies accounting information for a particular job step. While the JOB statement includes accounting information for the entire job, the ACCT parameter on the EXEC statement provides step-specific accounting information. This allows organizations to track resource usage, charge for computer time, and allocate costs at the step level.
123//stepname EXEC PGM=program,ACCT=accounting-information //stepname EXEC PROC=procedure,ACCT=accounting-information //stepname EXEC PROC=procedure,ACCT.procstep=accounting-information
The ACCT parameter can be specified in several formats, depending on your installation's accounting requirements:
ACCT=number
ACCT=(subparam1,subparam2,...)
ACCT.procstep=(subparam1,subparam2,...)
The format of accounting information is installation-defined and can vary widely between organizations. Common formats include:
Format | Example | Description |
---|---|---|
Single number | ACCT=123456 | Simple account number |
Department and project | ACCT=(D123,P456) | Department D123, Project P456 |
Complex structure | ACCT=(1234,SMITH,'PAYROLL',50) | Account, user, application, minutes |
Specific to procedure step | ACCT.STEP1=(1234,SMITH) | Account info for STEP1 in a procedure |
1//STEP1 EXEC PGM=PAYROLL,ACCT=45678
Specifies account number 45678 for the STEP1 step.
1//STEP2 EXEC PGM=REPORT,ACCT=(DEPT27,PROJECT3,USER01)
Provides more detailed accounting information with multiple fields.
1//STEP3 EXEC PROC=MONTHLY,ACCT=(A123,50,SMITH)
Specifies accounting information for all steps in the MONTHLY procedure.
1//STEP4 EXEC PROC=PAYROLL,ACCT.CALC=(FINANCE,30),ACCT.PRINT=(ADMIN,10)
Provides different accounting information for the CALC and PRINT steps within the PAYROLL procedure.
1//STEP5 EXEC PGM=SORT,REGION=2M,TIME=5,ACCT=(DEPT01,'SORT UTILITY',15)
Combines ACCT with other EXEC parameters for complete step control.
Aspect | JOB Statement Accounting | ACCT Parameter |
---|---|---|
Scope | Entire job | Specific step |
Required | Often required by installation | Optional |
Default behavior | N/A (must be specified if required) | Uses JOB accounting info if omitted |
Position | First positional parameter | Keyword parameter |
1//STEP1 EXEC PGM=REPORT,ACCT=999999 // Error if 999999 is not valid
1//STEP2 EXEC PGM=PAYROLL,ACCT=DEPT123 // Error if numeric format expected
1//STEP3 EXEC PGM=INVENTORY,ACCT=D123,P456 // Should be ACCT=(D123,P456)
1//STEP4 EXEC PROC=MONTHLY,ACCT.STEP9=12345 // Error if STEP9 doesn't exist