Modifying Device Designs › Editing Report Designs › Automatic Choice of Report Formats
Automatic Choice of Report Formats
A single detail format is automatically defined containing all the fields from the underlying access paths.
Additional header and total formats are automatically defined for each key level present in the access path as follows:
- If the access path is not unique, header and total formats are defined for each key level present.
- If the access path is unique, header and total formats are defined for each key level present except for the lowest.
Report Header, Top of Page, First Page, and End of Report formats are provided automatically as follows:
- A First Page format is defined for both PRTOBJ and PRTFIL functions.
- A Report Header, Top of Page, and End of Report format are defined only for PRTFIL functions.
Formats are ordered relative to each other as follows:
- Formats appear in hierarchical order of level: overall headings, level break headings, detail record, level totals, and overall totals.
- Level headings appear in key order, as specified by the access path on which the report design is based.
- Each format starts on a new line. A default number of spaces are used between each format.
- Formats are indented.
HDR Report headings
TOP Topof page headings
1PG First page headings
xHD Level n headings
. .
xHD Level 2 Headings
xHD Level 1 headings
RCD Detail format
xTL Level 2 totals
xTL Level 2 totals
. .
nTL Level n totals
. .
ZTL Final report
EOR End of report