Previous Topic Next topic Print topic


DISPLAY

Purpose

Displays a message on the user’s screen and optionally requests a response.

Syntax

DISPLAY (expression) [REPLY char-ref]

Parameters

expression
Is converted, where necessary, to a character string. This character string is displayed. It can contain mixed character data. If the expression has the GRAPHIC attribute, it is not converted.
char-ref
Specifies a character reference that receives the user-entered response. The response can contain CHARACTER, GRAPHIC, or mixed data.

Description

The DISPLAY statement displays a message on the user’s screen and optionally requests the user to enter a response to the message.

Example

display ('Communication link established.');

displays the message:

Communication link established.

Restrictions

The REPLY option suspends program execution until the user enters a response.

If GRAPHIC data is entered in the REPLY, it is received as character data that contains mixed data. Such character data can be converted to GRAPHIC data using the GRAPHIC BUILTIN.

Note:

The REPLY parameter is supported when running Open PL/I under the control of Enterprise Server.

Previous Topic Next topic Print topic