MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Translating to lowercase

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Thu Feb 15, 2007 11:00 am    Post subject: Translating to lowercase Reply with quote

Does anyone know of a way to translate UPPERCASE data to lowercase?
I've looked through the TSO manuals & did a search on this site & have found nothing documenting if it is possible to do this.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12394
Topics: 75
Location: San Jose

PostPosted: Thu Feb 15, 2007 11:36 am    Post subject: Reply with quote

Mike Nitz,

Translate verb

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A330/4.3.64?DT=20020521161835

Upper verb

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A330/3.24?DT=20020521161835

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Thu Feb 15, 2007 11:58 am    Post subject: Reply with quote

Kolusu,
I've looked at the manual & either the TRANSLATE command won't do
what I want it to do or I'm reading it wrong. I want to translate
variable UIDN with a value of XXXX to variable UIDN with a value of
xxxx. With the little bit of testing that I've done, it appears that the
TRANSLATE command will not translate from UPPERCASE to lowercase.
So again I ask the question, does anyone know of a way to do this??
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Feb 15, 2007 12:14 pm    Post subject: Reply with quote

This worked for me:

Code:

/* REXX */                                                         
UIDN = 'XXXX'                                                     
Say UIDN                                                           
UIDN = LC(UIDN)                                                   
Say UIDN                                                           
Exit 0                                                             
                                                                   
LC:                                                               
Return Translate(Arg(1), ,                                         
 'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')       
Back to top
View user's profile Send private message
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Thu Feb 15, 2007 12:21 pm    Post subject: Reply with quote

Thank You!!! I haven't done much with translation & I thought I might be looking at it wrong. Again, THANK YOU!!!!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12394
Topics: 75
Location: San Jose

PostPosted: Thu Feb 15, 2007 12:32 pm    Post subject: Reply with quote

Quote:

TRANSLATE command will not translate from UPPERCASE to lowercase.
So again I ask the question, does anyone know of a way to do this??


huh ?

try this

Code:

/* REXX */                                     
UVAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'             
LVAR = TRANSLATE(UVAR,,                         
                 'abcdefghijklmnopqrstuvwxyz',,
                 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') 
                                               
SAY LVAR                                       

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12394
Topics: 75
Location: San Jose

PostPosted: Thu Feb 15, 2007 12:33 pm    Post subject: Reply with quote

oops did not refresh the page Embarassed
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group