View previous topic :: View next topic
|
Author |
Message |
Paul1983
New User
Joined: 08 Jul 2008 Posts: 37 Location: bangy
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Paul1983
New User
Joined: 08 Jul 2008 Posts: 37 Location: bangy
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|