Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using the WRITE and WRITENR statements z/OS TSO/E CLISTs SA32-0978-00 |
|
Two CLIST statements are available for sending messages to the
terminal and prompting for input:
When prompting the user for input, include a READ statement after the WRITE or WRITENR statement. The READ statement reads the user input into a variable or variables. For more information, see Using the READ statement. Both WRITE and WRITENR must be followed by one or more blanks and
the text of the message. For example:
As a result of these statements, the terminal user sees the following
messages on the screen:
The cursor stops after the period in the last line to indicate the CLIST is waiting for the user's response. Because CONTROL ASIS is specified the CLIST displays the message ‘as written’, in both uppercase and lowercase letters. You can also use the WRITENR statement to join text. For example:
As a result of these statements,
the terminal user sees the following message:
Because CONTROL CAPS is specified, the message is translated to all capital letters before being displayed. |
Copyright IBM Corporation 1990, 2014
|