ENFORM User's Guide

Formatting a Report
Developing an ENFORM Query
058058 Tandem Computers Incorporated 3–47
Printing Information at the Top of Each Report Page
Use the SUBTITLE and TITLE statements or clauses to specify printing of one or more
text lines at the top of each report page. The difference between SUBTITLE and TITLE
is that the user-supplied text specified in a TITLE statement or clause prints before the
user-supplied text specified in a SUBTITLE statement or clause. The text supplied in a
SUBTITLE statement or clause prints whether or not a TITLE statement or clause is
specified.
A SUBTITLE or TITLE statement is in effect session-wide; that is, it applies to all the
reports generated during the current ENFORM session unless cancelled, reset, or
overridden. A SUBTITLE or TITLE clause overrides the SUBTITLE or TITLE
statement respectively.
In the following queries, titles are printed for two reports:
OPEN parts;
TITLE "Daily Inventory Report for " @DATE AS DATE *;
SUBTITLE "Location ” location " only";
LIST BY partnum, partname,inventory,
WHERE location is "L98";
CLOSE parts;
OPEN employee;
LIST BY regnum, By branchnum, salary,
AS M
ZZZ,ZZZ,ZZ9.99
,
WHERE regnum IS 1 AND branchnum IS 2,
TITLE TAB 4 "*** CONFIDENTIAL REPORT ***", CENTER,
SKIP 2,
SUBTITLE "Region Salary Report as of "
@DATE AS DATE *, SKIP 1,
"For Region " regnum CENTER;