Enform Plus Reference Manual
Clauses
Enform Plus Reference Manual—422684-001
5-13
Nonrepeatable Edit Descriptors
zeros are displayed to the right of the decimal point (the mask does not change the
integer format). If cost were declared as INTERNAL F4.2, and appeared in the
query as:
LIST (cost) AS M<99>, ...
the value of cost would be displayed without the digits to the right of the decimal
point.
More information on scale appears under Aggregates
on page 3-11 and Arithmetic
Expressions on page 3-21.
The following examples show the affect of the mask edit descriptor:
Format Item Value Printed Item
------ ---------- ------------
M"99/99/99" 103179 10/31/79
M'Z,ZZ9.99' 32.009 32.01
M<Z,ZZZ> 666 666
M<9,999> 666 0,666
M<9,999> 66666 *****
M<$ZZZ,ZZ9.99> 92000.00 $ 92,000.00
A query with these AS clauses:
amount AS M<$ZZ,ZZ9>,
date AS M<Z9/Z9/99>,
district AS A8,
telephone AS M<(999) 999-9999>
for these target-item values:
Amount := 9758 21573 15532
Date := 031777 091779 090579
District := West Midwest South
Telephone := 2135296800 2162296270 4047298400
produces this report:
$ 9,758 3/17/77 West (213) 529-6800
$21,573 9/17/77 Midwest (216) 229-6270
$15,532 9/ 5/79 South (404) 729-8400
Nonrepeatable Edit Descriptors
Nonrepeatable edit descriptors indicate some ways target-items or by-items are
to be printed. Values described by the nonrepeatable edit descriptors do not require data
conversion by the Formatter, but the Formatter does process these values. When
nonrepeatable edit descriptors are specified with modifiers or decorations, both the
nonrepeatable edit descriptor and the repeatable edit descriptor must be enclosed in
parentheses. The types of nonrepeatable edit descriptors are: