Enform Plus Reference Manual
Clauses
Enform Plus Reference Manual—422684-001
5-10
Repeatable Edit Descriptors
Alphanumeric Edit Descriptor
The alphanumeric edit descriptor specifies the target-item or by-item is to be
printed using alphanumeric display format. The syntax is:
w
is an unsigned integer that specifies the width in characters of the value of the
target-item or by-item to be printed. The maximum value for w is 255
characters.
If you specify w, Enform Plus prints the number of characters specified for the value of
the target-item or by-item. If you omit w, Enform Plus prints the actual number
of characters in the value of the target-item or by-item. In either case, Enform
Plus prints the value of the target-item or by-item left-justified with blank fill.
If w is too small for the value of the target-item or by-item, an overflow
condition occurs and Enform Plus truncates the value.
The following examples show the affect of the A edit descriptor:
Format Item Value Printed Item
------ ---------- ------------
A WORD WORD
A4 WORD WORD
A3 WORD WOR
"[LJ] A3" WORD WOR
"[RJ] A3" WORD ORD
Integer Edit Descriptor
The integer edit descriptor specifies an integer display format. The syntax is:
w
is an unsigned integer that specifies the width of the output.
m
is an unsigned integer that specifies the number of digits that must be printed. The
value of m must not exceed the value of w.
When you modify a target-item or by-item with an integer edit descriptor,
Enform Plus prints the value right-justified with blank fill. Enform Plus always prints at
least one digit for the value of such a target-item or by-item. If you specify m,
Enform Plus prints the number of digits specified, using leading zeros if necessary.
A[w]
Iw[.m]