| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
umed
Joined: 13 May 2005
Posts: 40
|
| Posted: Sat Dec 03, 2005 2:58 pm Post subject: How to convert uppper case string into lower case using REXX |
|
|
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 |
|
mak_tcs
Joined: 23 Nov 2005
Posts: 76
Location: Minneapolis, MN USA
|
| Posted: Sat Dec 03, 2005 3:50 pm Post subject: |
|
|
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
Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA
|
| Posted: Sun Dec 04, 2005 11:24 pm Post subject: |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|