Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search a string using REXX exec irrespectiive of case

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

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Fri Feb 13, 2009 7:28 pm    Post subject: Search a string using REXX exec irrespectiive of case
Reply with quote

I'm trying to search for a particular string, irrespective of case, in the REXX code, its not fetching all the occurrence of the string. For eg: I'm finding for all the occurences of the string ' Call 'ABCD' ' in one COBOL program. I have two calls but one call is of the format ' CALL 'ABCD' ' and the other is like 'Call 'ABCD''. The REXX exec is fetching me only one string, that's ' Call 'ABCD' '. But my requirement is to fetch both. Is there any way to search for the string irrespective of the case other than putting a 'OR' condition to check to both lower case and Upper case.


Thanks,
Paul
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Feb 13, 2009 7:33 pm    Post subject: Reply to: Search a string using REXX exec irrespectiive of c
Reply with quote

No.

I'd consider changing the variable that contains the string to all of one case, either all upper or all lower.
Back to top
View user's profile Send private message
Paul1983

New User


Joined: 08 Jul 2008
Posts: 37
Location: bangy

PostPosted: Fri Feb 13, 2009 7:40 pm    Post subject:
Reply with quote

But I'm searching in existing Cobol Programs for all these call strings to convert to another string.But searching itself is not fetching all the strings.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2086
Location: Silicon Valley

PostPosted: Fri Feb 13, 2009 9:57 pm    Post subject: Reply to: Search a string using REXX exec irrespectiive of c
Reply with quote

I think SUPERK is suggesting that you convert all lines to uppercase before searching.

You would not want to save it back in uppercase, so I suggest coping to another file to work with and to find what you want.
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us