The DISPLAY statement transfers low-volume data from the program to
the default system output device or to the object of a mnemonic-name.
The HP extensions to the DISPLAY statement (formats 2 and 3) are
COBOL language additions that facilitate video forms design and data
handling.
Format 1 -
DISPLAY { src-item } ... [ UPON output-dest ] [ WITH NO ADVANCING ]
[ WITH CONVERSION]
[ END-DISPLAY ]
1 – src-item
is a literal or the identifier of a data item. The literal can be any figurative constant including ALL literal.
2 – output-dest
is a mnemonic-name defined in the SPECIAL-NAMES paragraph of the Environment Division.