Previous Topic: Obtaining Accumulated TotalsNext Topic: Demonstration


What You Can Do

You can obtain the accumulated totals value for each occurrence of a subscripted field.

How to Do It

  1. Name the occurrences of the subscripted field on type 5 parameters.
  2. Print the specific totals values with type 6 parameters.

In the example below, AMT.5 is defined as a work field consisting of five repeating fields. The type 5 parameters extract the value of each occurrence of AMT.1 and AMT.2. The type 6 parameters return the sum of the occurrences of AMT.1 and the sum of the occurrences of AMT.2:

010 AMT.5
0151*005 AMT.1
0151*010 AMT.2
0161*005 AMT.1
0161*010 AMT.2