z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


READ statement

z/OS TSO/E CLISTs
SA32-0978-00

Use the READ statement to read input from the terminal and store it in symbolic variables. These variables may be defined on the READ statement or elsewhere in the CLIST. The READ statement is typically preceded by a WRITE or WRITENR statement that requests the user to enter the expected input at the terminal.

Read syntax diagramSkip visual syntax diagram
>>-+--------+--READ--+-----------------------------+-----------><
   '-label:-'        |            .--------------. |   
                     |            V              | |   
                     '-variable_1---+----------+-+-'   
                                    '-variable-'       

label
A name the CLIST can reference in a GOTO statement to branch to this READ statement. label is one-to-31 alphanumeric characters, beginning with an alphabetic character.
variable_1 / variable
Any valid variable name. The variables are positional in that values in the input data entered by the terminal user are stored sequentially into the specified variables.

If the operand is omitted the input is stored in the &SYSDVAL control variable.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014