v
If no break fields are selected, no summary functions are selected and final summaries are suppressed.
Only a count of the records is produced.
In a name and address file, for example, you might specify that two fields named
CITY
and
STATE
be
specified as break fields. If
STATE
was defined as the break field for break level 1,
CITY
was defined as the
break field for break level 2, and both fields were specified as break values in break text for their
respective levels, then the following sample report breaks and break text might appear in a report for the
following records:
Records in file:
|
Lines in report:
|
LNAME
CITY
STATE | STATE CITY
LNAME
Brown
Rochester
MN
|
MN
Rochester
Brown
Jones
Rochester
MN
|
Jones
Smith
Rochester
MN
|
Smith
.
.
.
|
.
.
.
| Users in Rochester MN
.
.
.
|
Count
3
.
.
.
|
Adams
St Paul
MN
|
St Paul
Adams
.
.
.
|
.
.
.
| Users in St Paul MN
.
.
.
|
Count
1
.
.
.
| All Users in MN
.
.
.
|
Count
4
.
.
.
|
.
.
.
|
Calva
Rochester
NY
|
NY
Rochester
Calva
Doe
Rochester
NY
|
Doe
Smith
Rochester
NY
|
Smith
.
.
.
|
.
.
.
| Users in Rochester NY
.
.
.
|
Count
3
.
.
.
| All Users in NY
.
.
.
|
Count
3
If you do not specify report breaks, Query prints or displays all the records in the report, one after the
other without any additional spacing or text.
Break level 0 is another level, provided by Query, that you can use. This break level, which occurs only at
the end of the report, is used to print the final summary values for all the specified summary functions at
the end of the report.
Break level 0 has default break text (
FINAL TOTALS
), but it can be changed or filled with blanks if you do
not want any final total description or values.
For printed output only, Query suppresses the printing of identical field information within a field that is
defined as a break field. That is, when the contents of a break field are the same in a group of records,
only the first record in the group has that field printed. All the other records in the group do not print the
duplicate contents of that field.
See the previous name and address file example. Even though each record contains a value for the
STATE
field, the value for
STATE
only appears in its column when the value changes.
However, for the first record at the top of every page,
all
the information in all report fields is printed again
for ease of reading.
Query assumes you want a blank line after any summaries, unless you specify a new page. If you display
the information rather than print it, Query ignores new page requests.
Chapter 12. Defining Query for iSeries report breaks
141
Содержание ISERIES SC41-5210-04
Страница 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 2: ......
Страница 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 12: ...x Query for iSeries Use V5R2 ...
Страница 14: ...2 Query for iSeries Use V5R2 ...
Страница 18: ...Figure 3 Major Tasks on the Query Menu and the Work with Queries Display 6 Query for iSeries Use V5R2 ...
Страница 32: ...20 Query for iSeries Use V5R2 ...
Страница 38: ...26 Query for iSeries Use V5R2 ...
Страница 44: ...32 Query for iSeries Use V5R2 ...
Страница 116: ...104 Query for iSeries Use V5R2 ...
Страница 122: ...110 Query for iSeries Use V5R2 ...
Страница 146: ...134 Query for iSeries Use V5R2 ...
Страница 150: ...138 Query for iSeries Use V5R2 ...
Страница 174: ...162 Query for iSeries Use V5R2 ...
Страница 178: ...166 Query for iSeries Use V5R2 ...
Страница 196: ...184 Query for iSeries Use V5R2 ...
Страница 198: ...186 Query for iSeries Use V5R2 ...
Страница 204: ...192 Query for iSeries Use V5R2 ...
Страница 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Страница 206: ...194 Query for iSeries Use V5R2 ...
Страница 210: ...198 Query for iSeries Use V5R2 ...
Страница 242: ...230 Query for iSeries Use V5R2 ...
Страница 256: ...244 Query for iSeries Use V5R2 ...
Страница 270: ...258 Query for iSeries Use V5R2 ...
Страница 272: ...260 Query for iSeries Use V5R2 ...
Страница 292: ...280 Query for iSeries Use V5R2 ...
Страница 293: ......
Страница 294: ... Printed in U S A SC41 5210 04 ...