Compute Statement (RW50.1)
Use Compute Statement (RW50.1) to define compute statements. A compute statement is any combination of data dictionary names, total names, operation symbols, or numeric values to construct your own calculation formulas.
You can use compute statements in Report Writer, Allocation, and Budgeting. Run RW250 (Compute Listing) to list all compute statements.
The following is an example of a compute statement to calculate the average of two current period budgets.
(CPBUD(90) + CPBUD(95)) / 2
CP represents current period
BUD is the data dictionary name for budget
90 and 95 are the budgets
+ represents add
/ represents divide