$RPTGRP

$RPTGRP GroupName

The $RPTGRP command lets two reports in a program share the same group. GroupName must be a valid group defined in a different report definition ($REPORT). For example, two reports can share the same heading lines. In the first report (R1), the beginning of the group definition for the heading lines is

**************************************
$GROUP     R@GRP@PGHDNG
**************************************

To use the heading lines from the first report (R1) in a second report (R2), define the $GROUP and $RPTGRP commands as follows:

***********************
$GROUP     R@GRP@R6PGHD
***********************
$PGBRK
$LEVEL     A
$RPTGRP    R@GRP@PGHDNG

The $RPTGRP parameter is the same as the $GROUP parameter in the first report.

You do not need to define the $FORMAT and $FIELDS commands in a group ($GROUP) that has a $RPTGRP command. The format and fields are the same as those in the GroupName you enter for the $RPTGRP command. You must, however, define all other options you want to apply to this group.