Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example of a Function z/OS TSO/E REXX User's Guide SA32-0982-00 |
|
Calculations represented by functions often require many instructions. For instance, the simple calculation for finding the highest number in a group of three numbers, might be written as follows: Finding a Maximum Number
Rather than writing multiple instructions every time you want to
find the maximum of a group of three numbers, you can use a built-in
function that does the calculation for you and returns the maximum
number. The function is called MAX and is used as follows:
To find the maximum of 45, -2, number, 199, and put the maximum
into the symbol biggest, write the following instruction:
|
Copyright IBM Corporation 1990, 2014
|