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.
char-ref
Specifies a character reference that receives the user-entered response. The response can contain CHARACTER 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.

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

Example

DCL MYNAME CHAR (16);

DISPLAY (‘What is your name?’) REPLY (myname);
DISPLAY (myname);

Restrictions

Use of the WCHAR type with DISPLAY/REPLY is not fully supported.

Previous Topic Next topic Print topic