Introduction to ENFORM
Controlling the Appearance of the Report
Using ENFORM to Produce Complete Reports
4–12 058051 Tandem Computers Incorporated
Entering the following statements, which assume the ENFORM defaults, will produce
the report in Figure 4-12.
OPEN parts;
LIST partnum, inventory, locations;
Figure 4-12. Standard Report Using ENFORM Formatting Defaults
PARTNUM INVENTORY LOCATION
212 7 J87
244 3 B78
4102 9 K45
4103 7 K43
6201 -1 A34
7102 2 F76
7301 3 H76
In this report: numeric fields are right-aligned; headings are the defaults from the
dictionary; character strings are left-aligned; and the spacing between columns is two
spaces. These are the defaults.
Specifying Column
Headings
The column headings for the report in Figure 4-12 are not very meaningful because
they use the field names from the dictionary description. There are two ways to
generate meaningful headings on the report: (1) use the ENFORM HEADING clause,
or (2) change the dictionary description of the record.
Using the Heading Clause to Specify Column Headings
Entering:
OPEN parts;
LIST partnum HEADING "PART NUMBER",
inventory HEADING "ITEM/IN/STOCK",
location HEADING "WAREHOUSE/LOCATION";
will generate the report in Figure 4-13.
Figure 4-13. Standard Report With User-Specified Headings
ITEMS WAREHOUSE
PART NUMBER IN STOCK LOCATION
212 7 J87
244 3 B78
4102 9 K45
4103 7 K43
6201 -16 A34
7102 20 F76
7301 32 H76