IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to match Large and Small Letter


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 128
Location: UK

PostPosted: Tue Feb 05, 2008 6:15 pm
Reply with quote

Hello ,

Can we match Large letter & small Letter
For example if we have two variablles which contain value as follows .

Variable1 = 'TEST'
Variable2 = 'test'
when i am comparing both variable it is saying variable not matching

Is there any way to match large and small letter .

One more thing i have extracted the values using STRIP command
STRIP(SUBSTR(ElementCode.MCnt,10,4))

Please Guide
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Tue Feb 05, 2008 6:58 pm
Reply with quote

You can use the UPPER command on the lower case variable and then do the comparison.

Code:

a = "Hi"
b = "there"
UPPER a b
say a b


This would display HI THERE
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Parsing Large JSON file using COBOL COBOL Programming 4
No new posts Split large FB file based on Key coun... DFSORT/ICETOOL 4
No new posts VSAM ESDS File to store large data 4GB JCL & VSAM 5
No new posts Is it possible to allocate DA dataset... All Other Mainframe Topics 5
Search our Forums:

Back to Top