ENFORM User's Guide
Example ENFORM Programs
058058 Tandem Computers Incorporated D–9
Report:
Part INV + QTY + 1
ORDERNUM Number QTY INV (OMIT NEGATIVES)
-------- ------ --- ----- ----------------
66 0 244 1 3 5
1 403 3 21 25
2 001 5 -100
2 403 8 12 21
3 102 3 12 16
... ... ... ... ...
6 201 1 -16
6 301 4 -21
6 302 5 34 40
6 401 6 54 61
6 402 22 -32
7 102 1 20 22
7 301 2 32 35
122 1 403 10 21 32
2 002 10 200 211
2 403 30 12 43
3 103 20 -4 17
3 201 3 6 10
4 103 40 7 48
5 103 3 8 12
7 102 7 20 28
7 301 8 32 41
----------------
----------------
748
The following program uses the AS clause mask format for price and partnum. The
CENTER clause centers inventory. Notice that the formatted width 999S, as specified
in the dictionary, is used for centering the values of inventory instead of the specific
value of the field. The IF/THEN/ELSE clause determines which value is printed in
the last column. The HEADING clause specifies the column title. The TOTAL clause
sums up the last two columns.
The WHERE clause restricts records from contributing to the report when either of the
conditions specified in its logical expression tests true.