REXX – CHANGE UPPER TO LOWER CASE
In REXX you do not have a direct function to change UPPER case characters to LOWER case or Vice versa.
To achieve this you can make use of TRANSLATE function.
/*** REXX ***/
SAY ‘PLEASE ENTER A STRING’
UPPER = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’
lower = ‘abcdefghijklmnopqrstuvwxyz’
FINAL = TRANSLATE(STRING,LOWER,UPPER)
The above REXX would convert all UPPER CASE to LOWER case.
And to convert LOWER CASE to UPPER CASE change the TRANSLATE function as below.
FINAL = TRANSLATE(STRING,UPPER,LOWER)
In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
You may also like to look at:
|Working on Mainframes – Is Change to a different technology necessary|