Introduction to ENFORM
Controlling the Appearance of the Report
Using ENFORM to Produce Complete Reports
4–14 058051 Tandem Computers Incorporated
Figure 4-14. Standard Report With Specified Data Items Centered
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
In this report, the items in the PART NUMBER and WAREHOUSE LOCATION
columns are centered and the items in the ITEMS IN STOCK column have defaulted to
right-aligned.
If you prefer to center all data items on the report, the LIST statement can be
conveniently entered as:
LIST partnum HEADING "PART NUMBER",
inventory HEADING "ITEMS/IN STOCK",
location HEADING "WAREHOUSE/LOCATION",
CENTER ALL;
Using the Space Clause to
Control Spacing Between
Columns
Unless your printer or display screen is restricted in width, it is preferable to space the
columns on the report instead of using the ENFORM default of two spaces between
columns. Spacing columns with the ENFORM SPACE clause can improve the report’s
readability.
OPEN parts;
LIST partnum HEADING "PART NUMBER",
SPACE 5 inventory HEADING "ITEMS/IN STOCK",
SPACE 10 location HEADING "WAREHOUSE/LOCATION",
CENTER ALL;
will generate the report in Figure 4-15.
Figure 4-15. Standard Report Using ENFORM SPACE Clause
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