|
|
| Author |
Message |
umed
New User
Joined: 13 May 2005 Posts: 40
|
|
|
|
Hi,
I need to convert an upper case string into lower case using REXX.
for conversion for lower to upper we are having several ways (like
ARG UPPER,Parse UPPER) but i am not aware with upper to lower
conversion so please help me regarding the same.
Regards,
Umed |
|
| Back to top |
|
 |
References
|
|
 |
mak_tcs
Active User
Joined: 23 Nov 2005 Posts: 76 Location: Minneapolis, MN USA
|
|
|
|
Hi,
I dont think a function called LOWER(string) available in REXX.
You can make use of TRANSLATE function:
Syntax:
result=TRANSLATE(string,Output table, Input table)
E.g.
result=TRANSLATE('ACF','abcdefghi','ABCDEFGHI')
==> result=acf
Thanks,
Mani |
|
| Back to top |
|
 |
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 106 Location: Douglasville, GA USA
|
|
|
|
You can write a program and save it in the same library or one in your sysexec concatation.
/* lower */
return translate(arg(1),"abcdefghijklmnopqrstuvwxyz",,
"ABCDEFGHIJKLMNOPQRSTUVWXYZ")
To use this function
my_var = lower(any_var) |
|
| Back to top |
|
 |
|
|