You can define multiple headings and footings at one time on the Report Heading fill‑in. For example, the following Report Heading fill‑in specifies that a report heading prints on a separate page before the report, a page heading prints on every page, and a report footing prints on a separate page after the report.
=> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ IDEAL : RPT HEADING/FOOTING RPT CUSTRPT (001) TEST SYS: DOC DISP Field Name, Literal, Function, Column Command or Arithmetic Expression Wid Tab Edit Pattern ‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑ ‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑ ====== ==================== T O P ===================== == === ============= 000300 <<RH>> __ ___ _____________ 000400 _______________________________________________ __ L10 _____________ 000500 'Sample Report for Manual' __ 043 _____________ 000600 _______________________________________________ __ L06 _____________ 000700 'Control Break is on State' __ 043 _____________ 000800 <<PH>> __ ___ _____________ 000900 $DATE('MM/DD/YY') 08 001 _____________ 001000 'Customer List' 11 +02 _____________ 001100 _______________________________________________ __ L01 _____________ 001200 'Reporting States:' __ 011 _____________ 001300 STNAMES 25 +02 _____________ 001400 <<RF>> __ ___ _____________ 001500 'Report Footing With Page Eject' __ 041 _____________ 001600 _______________________________________________ __ L08 _____________ 001700 'That's All Folks!' __ 046 _____________ ====== ===================== B O T T O M ============== == === =============
Define page headings and footings on the Report Heading fill‑in or on the Parameter fill‑in, not on both. When using the Report Heading fill‑in, specify only one label of each type.
When accumulating totals for the report footing or the page footing, the values are calculated for every PRODUCE statement. The last report footing for the last row is written to the report. Thus, if the rows are sorted when accessed, that is by an ORDERED BY clause, the totals should print properly. The last produced row that contains the valid total value is the last row printed.
Note: The number of lines skipped after the page heading is specified as a global value on the Parameter fill‑in. You can specify the value as 0 through 9 on the Parameter fill‑in. Since this value is also used for column headings, there might be instances when it is necessary to override this value for page headings. This can be done using the TAB column on the Report Heading fill‑in.
As with report groups on the Detail fill‑in, each set of specifications for a heading or footing is treated as a single entity. Therefore, RDF handles the TAB specification as part of the page heading itself and then applies the global value, number of lines to skip, to the entire page heading.
For example, the value on the Parameter fill‑in is 1, but 5 lines are skipped after a page heading. The entry in the TAB column is the total number of lines to skip, that is 5, less the automatic number of lines skipped, that is 1. So, L04 is entered in the TAB column for the <<PH>> heading.
=> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ IDEAL : RPT HEADING/FOOTING RPT CUSTRPT (001) TEST SYS: DOC DISP Field Name, Literal, Function, Column Command or Arithmetic Expression Wid Tab Edit Pattern ‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑ ‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑ ====== ==================== T O P ===================== == === ============= 000300 <<PH>> __ ___ _____________ 000400 'Customer List' 13 ___ _____________ 000500 _______________________________________________ __ L04 _____________ ======= ===================== BOTTOM =========== == === =============
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|