ENFORM User's Guide

Formatting a Report
Developing an ENFORM Query
058058 Tandem Computers Incorporated 3–53
Report:
EMPNUM EMPNAME JOB
------ ------------------ ----------------
1 ROGER GREEN MANAGER
32 THOMAS RUDLOFF MANAGER
23 JERRY HOWARD MANAGER
... ... ...
Indicating a New Line
Use the SKIP clause to specify that the elements following the SKIP clause are to be
printed on a new line. If a digit is included as part of the SKIP clause, ENFORM skips
the number of lines indicated by the digit before printing the elements. When the digit
is omitted, only one line is skipped unless the option variable @VSPACE is set.
In the following example, the SKIP clause causes ENFORM to print state on the next
line:
OPEN customer;
LIST custnum,custname,
city HEADING"CITY/STATE",
SKIP 1,TAB 31,state, NOHEAD;
Report:
CITY
CUSTNUM CUSTNAME STATE
------- ------------------ ---------------
21 CENTRAL UNIVERSITY PHILADELPHIA
PENN
... ... ...
The SKIP clause can be affected by the option variable @VSPACE described in the
ENFORM Reference Manual. Refer to this manual for more information.
Changing The Default Spacing
Use the SPACE clause to temporarily change the default spacing between two report
columns. Specification of a digit after the SPACE keyword indicates the number of
spaces you want between columns. If no digit is present, ENFORM skips one space.
Default spacing resumes after ENFORM prints the element associated with the SPACE
clause. The following example changes the default spacing between custname and city:
OPEN customer;
LIST custnum, custname,
SPACE 7, city;