Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to convert uppper case string into lower case using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
umed

New User


Joined: 13 May 2005
Posts: 40

PostPosted: Sat Dec 03, 2005 2:58 pm    Post subject: How to convert uppper case string into lower case using REXX
Reply with quote

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
View user's profile Send private message
References
mak_tcs

Active User


Joined: 23 Nov 2005
Posts: 76
Location: Minneapolis, MN USA

PostPosted: Sat Dec 03, 2005 3:50 pm    Post subject:
Reply with quote

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
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Sun Dec 04, 2005 11:24 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1