$GROUP/$ENDGRP

$GROUP GroupName

$ENDGRP

The $GROUP/$ENDGRP command pair marks the beginning and ending of a group definition.

GroupName must be a valid RPG variable name. The variable name can be up to 6 characters appended to the prefix R@GRP@.

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.