Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to match Large and Small Letter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
shr_amar
Warnings : 2

Active User


Joined: 02 May 2005
Posts: 126
Location: UK

PostPosted: Tue Feb 05, 2008 6:15 pm    Post subject: How to match Large and Small Letter
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    Post subject: Reply to: How to match Large and Small Letter
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Not able to compress a very large PDS Hervey Martinez JCL & VSAM 7 Fri Nov 04, 2016 5:57 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am
No new posts DFSORT to match two files and write John F Dutcher DFSORT/ICETOOL 6 Thu May 12, 2016 5:17 pm
No new posts Match and NoMatch using Sort raj_mainframe08 DFSORT/ICETOOL 1 Sat Feb 06, 2016 4:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us