Displays or sets the number identifying the chargecode for Reports and WFL jobs. Applies only to Reports and WFL jobs initiated from the application. Has no effect on Standalone Reports. By default, the value is zero. The :COD value is stored in your database. When your application is initiated, stored settings are reapplied. Security level is Controller.
The :COD command has the form:
:COD n
Where, n value is a number from 0 through 2, identifying the chargecode for your application initiated Reports and WFL jobs.
0– your Reports (including those initiated with a :RUN command) and jobs runs with the chargecode of your application (specifically the System Supervisor – LSS) from the Build Options screen, ignoring any value that was entered into Glb.ChargeCode.
1– your supplied chargecode is used, unless it is invalid or missing, then the chargecode of your application is used.
2– your supplied chargecode is used, unless it is invalid, when the chargecode of your application is used. If there is no supplied chargecode, the chargecode used depends on the initiation method.
If :COD is used without a number, then the current setting number is displayed.
For Reports run from Ispecs, administration commands, or RIP, the chargecode is usercode/station, where usercode is the COMS usercode and station is the station name.
Considerations:
For the Report Output Control system (ROC), the chargecode of your application is used unless the :COD level is 2, in which case the values ROC is used.
For RIP, the chargecode with which the RIP program is run is passed to LSS.
For Reports run from Ispecs, put your chargecode in the built-in attribute Glb.ChargeCode (an alphanumeric property of length 45).
Refer to Setting Chargecodes for Applications and Reports for more information. Refer to the Agile Business Suite Programming Reference Manual for more information.