Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using PROC with positional parameters z/OS TSO/E CLISTs SA32-0978-00 |
|
You can use the PROC statement to assign parameters to variables
by position. First, type a number on the PROC statement telling how
many positional parameters to expect (type 0 if none).
Then specify the variables that you want to use. For example, in
the following PROC statement, the number 1 tells the CLIST to assign
the first parameter it receives to the variable NAME.
Thus, if you invoke the CLIST
with the parameter JOE:
the variable
NAME contains the value JOE.Suppose you wanted the PROC statement to assign a second parameter
to the variable ADDRESS. You can write the statement as follows:
The
invoker must know the correct order in which to pass positional parameters,
and must pass as many as you specify by number on the PROC statement.
If the invoker doesn't pass a positional parameter as expected,
the CLIST prompts for it. Positional parameters can have up to 252
characters (A-Z, 0-9, #, $, @, _). |
Copyright IBM Corporation 1990, 2014
|