Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
To get better help, you need to tell us, what is not clear from the manuals.
Was just reading the Advantage CA-Easytrieve Plus Report Generator, which says,
BREAK-LEVEL is a system-defined field whose value indicates the highest
control break level. The following example illustrates using BREAK-LEVEL to
display an appropriate message in a BEFORE-BREAK procedure:
SEQUENCE REGION BRANCH
CONTROL REGION BRANCH
LINE REGION BRANCH NAME PAY-GROSS
IF LEVEL = 1 . * processing lowest break
IF BREAK-LEVEL = 1 . * only branch is breaking
DISPLAY '*** BRANCH TOTALS'
ELSE-IF BREAK-LEVEL = 2. * region is breaking too
DISPLAY '*** BRANCH AND REGION TOTALS'
ELSE-IF BREAK-LEVEL = 3. * final report totals
DISPLAY '*** BRANCH, REGION, AND FINAL TOTALS'
LEVEL is a system-defined field provided for control reports. The field is
defined as a two-byte binary field. The value in LEVEL indicates the control
break level and varies from 0 to 'n + 1' where:
LEVEL = 0 when processing detail lines
LEVEL = n for total line processing at each control level
LEVEL = n + 1, when processing FINAL totals.