DISPLAY Statement

<display statement>

── DISPLAY ── <string expression> ─────────────────────────────────────┤

Explanation

The DISPLAY statement displays and logs the value of the string expression (up to a maximum of 430 characters). The DISPLAY statement accepts up to 1799 characters. If the job was initiated from CANDE, the message is also displayed at the user's terminal.

Examples

The following examples illustrate the DISPLAY statement:

DISPLAY "HI THERE"
DISPLAY PROGNAME & "DID NOT COMPILE"

The values of integer and real variables can be displayed by first converting them to string values using the STRING function, as in the following example:

DISPLAY STRING (X,*);

In the preceding example, X can be an integer or real variable. However, if X is a real variable, any fractional value following the decimal point is rounded off. Refer to String Expressions for a description of the STRING function.

The DISPLAY statement does not display quotation marks (") around the string value it displays. It also adds a period (.) at the end of the message.