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

Searching a string PDS members


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Dec 23, 2009 4:21 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1207
Location: Bangalore,India

PostPosted: Wed Dec 23, 2009 4:33 pm
Reply with quote

Kamlesh,

Try the command again without quotes
Code:

Srchfor ES
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 23, 2009 4:40 pm
Reply with quote

Do you want to search "ES with single-quotes attached to it"?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 4:54 pm
Reply with quote

First of all, what has this post got to do with COBOL programming tecniques ?

Have you tried option 3.14
Back to top
View user's profile Send private message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Dec 23, 2009 4:55 pm
Reply with quote

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
View user's profile Send private message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Dec 23, 2009 4:56 pm
Reply with quote

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
View user's profile Send private message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Dec 23, 2009 5:04 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 5:14 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 23, 2009 5:26 pm
Reply with quote

So, did it work?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1207
Location: Bangalore,India

PostPosted: Wed Dec 23, 2009 5:27 pm
Reply with quote

Hello kamlesh

Please try below command

Code:
SRCHFOR '''ES'''
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 5:28 pm
Reply with quote

Anuj Dhawan wrote:
So, did it work?

Yes, of course it did.
I would not have posted otherwise.
Back to top
View user's profile Send private message
Kamlesh Kamal

New User


Joined: 16 May 2008
Posts: 36
Location: Kolkata,India

PostPosted: Wed Dec 23, 2009 6:10 pm
Reply with quote

It worked fine Ekta thanks for the help..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 23, 2009 6:14 pm
Reply with quote

oh Expat...my response was for OP... icon_redface.gif
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts Need to find a specific STRING COBOL Programming 11
No new posts String has hex character need to conv... COBOL Programming 3
No new posts SORT - To repeat a string in same col... SYNCSORT 3
No new posts JCL - To repeat a string in same colu... JCL & VSAM 2
Search our Forums:

Back to Top