Previous Topic: Multiple-level SubtotalsNext Topic: Demonstration


What You Can Do

You can obtain automatically calculated subtotals for each control-break level.

After the extract file is sorted, records are read into the output (CULE) phase of CA Culprit. When a control break occurs, the type 8 logic is executed and the subtotal accumulators for the level with the control break are reinitialized after the break. If no control break occurs, the values of the numeric fields appearing on type 5 lines are added to the accumulators.

How to Do It

  1. Code the control break on the SORT parameter.
  2. Specify the type 5 parameter field name on a type 6 parameter.
  3. Test control break levels in type 8 logic.
  4. Specify the type 6 line to be printed with the TAKE command in type 8 logic.