$GROUP/$ENDGRP
$GROUP GroupName
$ENDGRP
The $GROUP/$ENDGRP command pair marks the beginning and ending of a group definition.
GroupName must be a valid COBOL variable name. The variable name can be up to 30 characters long and must be unique in a program ($PROGRAM).
A typical grouping of lines in a report would be the heading lines, the detail lines, and the total lines.
The $GROUP/$ENDGRP and $SUBGRP/$ENDSUB command pairs can occur a maximum of fifty times in a report definition file. For more information, see $SUBGRP/$ENDSUB.