Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DISPLAY statement

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

Read syntax diagramSkip visual syntax diagram>>-DISPLAY--(expression)--+-------------------+--;-------------><
                          '-REPLY--(char-ref)-'
 
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.
REPLY (char-ref)
Specifies a character reference that receives the user entered response. The response can contain CHARACTER, GRAPHIC, or mixed data.

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.

Example:

  display ('Communication link established.');

displays the message

  Communication link established.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)