The Report Heading Group Presentation Rules table points to the appropriate presentation rules for all permissible combinations of LINE NUMBER and NEXT GROUP clauses in a report footing report group. The report footing presentation rules are as follows:
- Upper limit rules.
- If a page footing report group has been presented on the page to which the report is currently positioned, then the first line number on which the report footing report group can be presented is one greater than the final LINE- COUNTER setting established by the page footing report group.
Otherwise the first line number on which the report footing report group can be presented is the line number obtained by adding one and the value of integer-5 of the PAGE clause.
- The first line number on which the report footing report group can be presented, is the line number specified by the HEADING phrase of the PAGE clause.
- Lower limit rule:
The last line number on which the report footing report group can be presented is the line number specified by integer-1 of the PAGE clause.
- First print line position rules:
- The first print line of the report footing report group is presented on the line specified by the integer of its LINE NUMBER clause.
- If a page footing report group has been presented on the page to which the report is currently positioned, then the sum of the final LINE-COUNTER setting established by the page footing report group and the integer of the first LINE NUMBER clause of the report footing report group defines the line number on which the first print line of the report footing report group is presented. Otherwise the sum of the integer of the first LINE NUMBER clause of the report footing report group, and the line number specified by the value of integer-5 of the FOOTING phrase of the PAGE clause defines the line number on which the first print line of the report footing report group is presented.
- The NEXT PAGE phrase in the first absolute LINE NUMBER clause directs that the report footing report group is presented on a page on which no other report group has been presented. The first print line of the report footing report group is presented on the line number specified by the integer of its LINE NUMBER clause.
- If LINE IS NEXT PAGE is the only LINE clause in this report group, the first line of the report heading report group is presented on line HEADING integer-2.
- The sum of the content of LINE-COUNTER and the integer of the first LINE NUMBER clause defines the line number on which the first print line is presented.
- The report footing report group is not presented.
- Final LINE-COUNTER setting rules.
- The final LINE-COUNTER setting is the line number on which the final print line of the report footing report group is presented.
- LINE-COUNTER is unaffected by the processing of a nonprintable report group.
Table 1. Report Heading Group Presentation Rules
1
|
Applicable Rules 2 |
If the PAGE Clause is specified |
If the PAGE Clause is omitted |
Sequence of LINE NUMBER Clauses 3 |
NEXT GROUP Clause |
Upper Limit |
Lower Limit |
First Print Line Position |
Next Group |
Final LINE COUNTER Setting |
First Print Line Position |
Final LINE COUNTER Setting |
AR |
|
1a |
2 |
3a |
|
4a |
Illegal Combination4 |
R |
|
1b |
2 |
3b |
|
4a |
3b |
4a |
NP R |
|
1c |
2 |
3c |
|
4a |
Illegal Combination 4 |
|
|
|
|
3e |
|
4b |
3e |
4b |