View previous topic :: View next topic
|
Author |
Message |
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
Hi ,
I have around 500 COBOL programs in a particular PDS and I need to search for a string 'ES' in all those programs.Can anyone let me know how can I do it.
I have tried SRCHFOR ''ES'' it does not work.I get a INVALID SEARCH STRING error.
Code: |
Y090 VIEW MSTCMN.ADCS.BATCH.SOURCE Row 00001 of 00339
Command ===> srchfor ''ES'' Scroll ===> CSR
Name Prompt Size Created Changed ID
_________ E0421ACG 938 2001/02/23 2009/10/29 10:58:00 E0421A
_________ E0421ACS 243 2009/08/19 2009/10/29 11:00:00 E0421A |
Code: |
Y090 VIEW MSTCMN.ADCS.BATCH.SOURCE Invalid search-string
Command ===> Scroll ===> CSR
Name Prompt Size Created Changed ID
_________ E0421ACG 938 2001/02/23 2009/10/29 10:58:00 E0421AG
_________ E0421ACS 243 2009/08/19 2009/10/29 11:00:00 E0421AG |
|
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Kamlesh,
Try the command again without quotes
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Do you want to search "ES with single-quotes attached to it"? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
First of all, what has this post got to do with COBOL programming tecniques ?
Have you tried option 3.14 |
|
Back to top |
|
|
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
Yea..That's right I want to search ES with single quotes attached to it...Thx
Code: |
SEARCH STRING IS 'ES' (QUOTES INCLUDING) |
|
|
Back to top |
|
|
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
Hey Ekta..
Thx for taking out time..but srchfor ES won't serve the purpose...in that case it will be found an all the PDS members..I need to search for 'ES' quotes including ... |
|
Back to top |
|
|
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
didn't know where else can this be put...
3.14 option has the same problem can't give 'ES' as the search string. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Kamlesh Kamal wrote: |
didn't know where else can this be put...
3.14 option has the same problem can't give 'ES' as the search string. |
Yes you can. Just play with the number of quotes used when you specify the search string.
I know it works because I have done this before. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
So, did it work? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello kamlesh
Please try below command
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Anuj Dhawan wrote: |
So, did it work? |
Yes, of course it did.
I would not have posted otherwise. |
|
Back to top |
|
|
Kamlesh Kamal
New User
Joined: 16 May 2008 Posts: 36 Location: Kolkata,India
|
|
|
|
It worked fine Ekta thanks for the help.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
oh Expat...my response was for OP... |
|
Back to top |
|
|
|