Function
The GROUP INDICATE clause indicates to the Report Writer that the printable item with which it is associated is to be printed only if the detail report group is written for the first time on a page of the report or for the first time after a control break.
Format
GROUP
INDICATE
Syntax rules
The GROUP INDICATE clause may be used only in a detail report group. The item description containing the GROUP INDICATE clause must also include a COLUMN clause.
The GROUP INDICATE clause causes the Report Writer to print the associated printable item according to the SOURCE or VALUE clause specified, only in the following cases:
On the first presentation of the detail report group in the report
On the first presentation of the detail report group after a page advance or
On the first presentation of the detail report group after a control break.
In all other cases, space characters are substituted for the printable field, suppressing the associated data in the print layout.
Example 10-3
Data Division entries:
. . . CONTROLS ARE FINAL, MONTH, WDAY . . . 01 DETAIL-LINE PLUS 1 TYPE DETAIL. 02 COLUMN 2 GROUP INDICATE PIC A(9) SOURCE MONTHNAME (MONTH). 02 COLUMN 13 GROUP INDICATE PIC 99 SOURCE WDAY. . . .
Excerpt from a report
. . . JANUARY 15 B11 16 A 20.00 B11 4 B 13.45 B11 20 D 35.40
The above extract from a report comprises three detail report groups of the same report group definition, created immediately following a control break (change in the current contents of DAY).The current values JANUARY and 15 of the sending items (SOURCE items) for the first two printable items of this 1-line detail report group appear, therefore, only in the first line (detail report group).