The report Heading/Footing definition fill‑in specifies a more elaborate report page heading or footing than can be defined on the report Parameters fill‑in. The Heading/Footing fill‑in is optional and is shown in the following screen.
Definitions specified with the Heading/Footing fill‑in override those specified on the report Parameters fill‑in. For example, the standard control break heading parameter on the report Parameters fill‑in is ignored for a break level if a <<BH>> label is specified on the Heading/Footing fill‑in.
You can use field names, literals, functions, and arithmetic expressions as part of a heading or footing. The position or location of the heading or footing is also specified on this fill‑in.
You can define the following types of headings and footings on the Heading fill‑in:
Note: You should not define both a heading report parameter and a report page heading definition. If you specify date and page as report parameters, position the first line of a multiple line heading so that it does not conflict with the date and page positions.
=> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ IDEAL : RPT HEADING/FOOTING RPT CUSTRPT (001) TEST SYS: DOC FILL‑IN Field Name, Literal, Function, Column Command or Arithmetic Expression Wid Tab Edit Pattern ‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑ ‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑ ====== ==================== T O P ===================== == === ============= ______ ________________________________________________ __ ___ _____________ ______ ________________________________________________ __ ___ _____________ ______ ________________________________________________ __ ___ _____________ . . . ______ ________________________________________________ __ ___ _____________ ====== ===================== B O T T O M ============== == === =============
A series of literals and field names specifies a heading or footing on the report Heading fill‑in. Although you enter the pieces of the heading or footing vertically on the fill‑in, they are arranged horizontally across the top of each page of the report. A heading wider than the report width wraps around to the next line.
To define a heading or footing, enter the information in the following fields on the Heading fill‑in:
An area where the user can enter CA Ideal editing line commands. You can position the command area on the right or left of the screen using the SET EDIT MARGIN command. For more information, see the Command Reference Guide.
The group‑identifier, field name, literal, function, or arithmetic expression used as a part of the heading or footing. This area must be left blank if Lnn is specified in the TAB column.
To modify the specification, the ERASE EOF key or the DELETE key can delete this value. When a value in this field is deleted, CA Ideal deletes corresponding options specified in that line.
Identify all headings and footings with a group label, which indicates the function of the heading or footing in the report. Valid group identifiers are:
If multiple page headings <<PH>> are specified, the first page heading encountered is the one that appears on the report. If both a page title (on the Parameter fill‑in) and a page heading (on the Heading fill‑in) are specified, the page title from the Parameter fill‑in appears on the report.
When a TAB of Lnn is specified for the first line of a page heading, the heading text is moved nn lines down from where the heading would have started. The TAB does not affect the automatic date and page number. They continue to print on the original first line.
The control break heading identifier is specified with a level number to identify the control break level for which the heading is printed. The format for the control break group identifier is <<BH>> [LEVEL] n. The keyword LEVEL is optional. If no level is specified, the heading applies to all control breaks defined. You can specify more than one level, as in:
<<BH>> LEVEL 1 2 3
You can suppress an individual control break heading for any level by creating a <<BH>> group for that level with no lines following.
You can include the report date and page in the heading by using report functions.
The control break footing identifier is specified with a level number to identify the control break level for which the footing is printed. The format for the control break group identifier is <<BF>> [LEVEL] n. The keyword LEVEL is optional. If no level is specified, the footing applies to all control breaks defined. You can specify more than one level, as in:
<<BF>> LEVEL 1 2 3
You can suppress an individual control break footing for any level by creating a <<BF>> group for that level with no lines following. Specify LEVEL 0 as the <<BF>> group level to print grand totals at the end of the report.
You can include summary information in the control break footing by using report functions. See the section titled Functions later in this appendix. If a <<BF>> group is defined, any of these functions specified on the Detail fill‑in is ignored. The function must be defined in the <<BF>> group.
Note: A double‑space is automatically generated before a control break footing is produced.
The lines defining the output in an <<ABORT>> group are printed automatically when the program terminates abnormally. To force the <<ABORT>> group to print when releasing a report dynamically, use the statement RELEASE REPORT WITH ABORT.
You can use the <<ABORT>> group with user‑defined error procedures. Although you can code only one <<ABORT>> group, you can specify one or more working data variables to define the output, provided that the variables are current for the last PRODUCE REPORT statement executed. These variables can then be assigned in the error procedure based on the value of the return code ($RC). Variables set after the last PRODUCE REPORT statement was executed are not available for the <<ABORT>> group.
The group identifier must appear on a line by itself. It is followed by lines that define the specified heading or footing. If only one heading is specified, no group identifier is required and the heading is assumed to be the page heading.
Field names must be the names of fields in dataviews, panels, working data, or parameters. You can continue field names for a total of up to three lines by terminating the name with a semicolon. For more information, see the section Considerations for Continuation later in this chapter.
You must enclose literals in single quotes. You can specify literals on consecutive lines with a TAB specification of 0 or 1. They are concatenated in the page heading. If spaces are required between the two literals, you can use the TAB specification to provide them or include them in the quotes. You cannot continue a heading literal with a semicolon.
Report functions entered in a heading or footing return a value when the heading or footing is produced. The following report functions are available:
The $TOT function provides the same value as the TOT function on the Detail fill‑in.
The value entered for field in any of the above functions must be a unique name or label on a line in the Detail fill‑in. If the field name is a qualified name (for example, EMPLOYEE.SALARY) in the Detail definition, then it must also be qualified when used with these functions in either the Heading or Footing definition. You can continue the function specification on a total of up to three lines by ending each line except the last with a semicolon.
You can specify an arithmetic expression with or without a label. However, you cannot use the value computed for the expression as the operand of a report function if the expression is not labeled. You can continue an expression for a total of up to three lines by ending the Field Name entry in each line except the last with a semicolon.
Specifies the width of the column and its placement on the report line.
A number from 0 through 99 that specifies the width of the column. An entry here overrides the default column width. If no value is specified here (the default), the width is equal to the longest of the following:
If the field value is longer than the space allotted, it is truncated. Alphanumeric fields are truncated from the right. Numeric fields are truncated from the left.
If an alphanumeric function is specified, a WIDTH specification is required. See the PDL chapter in the Programming Reference Guide for a definition of terms.
Specifies the column and line where this field in the heading or footing starts. If omitted, the Spacing Between Columns option in the report Parameters fill‑in determines the spacing. You can use the following entries:
Lnn must be a separate tab entry with all other columns blank. In the following example, it is necessary to leave the second line in the field name column blank because the TAB value is L05.
FIELD NAME ... TAB
X 50
L05
Y 50
Leaving the field name blank when Lnn is specified in the TAB column is useful for skipping extra lines without producing a field on the report in that position.
Specifies an override to the default edit pattern for the entry. Refer to the edit pattern description in the section titled Detail Definition Fill‑in later in this chapter. You can continue the edit pattern for a total of up to three lines by ending the field name column with a semicolon. You can also specify date patterns here; however, $RPT‑DATE uses the date format specified in the Parameters fill‑in. Be sure that the edit pattern is large enough to accommodate the largest possible value and provide a sign if negative values are possible.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|