CLIST
REXX
Separating statements within a line
Separating instructions within a line
No more than one statement per line
Use ;
do 5; Say 'Hello'; end
Character set of statements
Character set of instructions
Must be in uppercase
Can be upper, lower, or mixed case
Comments
Comments
Enclose between
/* */
, closing delimiter optional at the end of a line.
Enclose between
/* */
, closing delimiter
always required.
Using Functions
CLIST
REXX
Calling a function
Calling a function
&FUNCTION(expression)
SET A = &LENGTH(ABCDE) /* &A = 5 */
function(arguments)
a = length('abcde') /* a = 5 */
Using Variables
CLIST
REXX
Assigning value to a variable
Assigning value to a variable
SET statement
SET X = 5
/* &X gets the value 5
*/
SET NUMBER = &X /* &NUMBER gets the value 5 */
SET Y = NUMBER /* &Y gets the value NUMBER */
assignment instruction
x = 5
/* X gets the value 5
*/
NUMBER = x
/* NUMBER gets the value 5 */
Y = 'number'
/* Y gets the value number */
Syntax
Appendix C. Comparisons Between CLIST and REXX
203
Содержание TSO/E REXX
Страница 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 2: ......
Страница 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Страница 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Страница 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Страница 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 241: ......