ENFORM User's Guide

Example ENFORM Programs
D–6 058058 Tandem Computers Incorporated
The TITLE and SUBTITLE clauses print information at the top of the report. The
subtitle is centered within the report. The AT START PRINT, AT END PRINT,
BEFORE CHANGE, and AFTER CHANGE clauses print information within the
report.
?DICTIONARY $mkt.dictry
SET @SUBTOTAL-LABEL TO "SUBTOTAL";
OPEN order, odetail, parts;
LINK order TO odetail VIA ordernum;
LINK parts TO odetail VIA partnum;
LIST BY order.ordernum,
parts.partnum AS M
9 999
,
quantity HEADING "QTY",
price,
(price * quantity) AS M
ZZZ,999.99
HEADING "PRICE * QTY", SUBTOTAL, TOTAL,
WHERE order.ordernum > 51,
TITLE "SUMMARY OF ORDERS" TAB 34 @DATE AS DATE * SKIP 2,
SUBTITLE "RUN AT - " @TIME AS TIME * CENTER,
AT START PRINT "BEGIN =========",
AT END PRINT "END =========",
BEFORE CHANGE ON order.ordernum PRINT
"=== BEFORE CHANGE ===",
AFTER CHANGE ON order.ordernum PRINT
"=== AFTER CHANGE ===";