$PREFIX

$PREFIX GroupPrefix

The $PREFIX command defines the prefix for the fields in a group. Different prefixes are needed for the fields in different groups if any fields appear in more than one group. The different prefix ensures that the report fields have unique names in the report definition copybook.

GroupPrefix is part of the RPG variable name for each field. For example, if the group prefix is ECH@ and the field name, as defined in $FIELDS, is DATE, the field name is RECH@DATE.