Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-4
DISPLAY
DISPLAY
The DISPLAY clause specifies a default display format for field or group values listed
on an Enform Plus report.
display-format
is either a string (enclosed in quotation marks) or the name of a constant in the
open dictionary. The value of display-format must be a string of repeatable
edit descriptors, nonrepeatable edit descriptors, and modifiers, as described in the
Enform Plus Reference Manual.
A display format specified in a DDL DISPLAY clause can be overridden by an Enform
Plus AS clause.
The examples in Table 6-2 on page 6-4 show a commonly used format, the mask edit
descriptor.
Note. The DDL compiler ignores this clause when generating host-language source code.
DISPLAY display-format
Table 6-2. Display Format Examples
Display Format Value Displayed Value
“M<99/99/99>” 012791 01/27/91
“M<Z,ZZZ.99>” 0.00 .00
“M<Z,ZZZ.99>” 1.499 1.50
“M<$ZZ,ZZ9.99>” 5246.95 $ 5,246.95
“M<(999) 999-9999>” 4084266974 (408) 426-6974
“M<99,999>” 524695 ******* (overflow)
Example 6-2. Constant Names That Specify DISPLAY Formats
CONSTANT mdy-date-display VALUE "M<mm/dd/yy>".
CONSTANT phone-display VALUE "M<(999) 999-9999>".
DEF deliv-date PIC 9(6) DISPLAY mdy-date-display.
DEF custphone PIC 9(10) DISPLAY phone-display.