EasyManuals Logo

IBM TSO/E REXX User Manual

IBM TSO/E REXX
242 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #221 background imageLoading...
Page #221 background image
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
SETX=5 /*&Xgets 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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM TSO/E REXX and is the answer not in the manual?

IBM TSO/E REXX Specifications

General IconGeneral
BrandIBM
ModelTSO/E REXX
CategoryComputer Hardware
LanguageEnglish

Related product manuals