Using the accumulate statement in Progress ABL

Calculates one or more aggregate values of an expression during the iterations of a block. Use the ACCUM function to access the result of this accumulation.

Sample

FOR EACH Teacher
NO-LOCK:
ACCUMULATE 1 (TOTAL).
END.

DISPLAY TOTAL ” teachers”.

😀