Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Searching a string PDS members

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Searching a string PDS members
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: 1203
Location: Bangalore,India

PostPosted: Wed Dec 23, 2009 4:33 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 23, 2009 4:40 pm    Post subject:
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: 8787
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 4:54 pm    Post subject:
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    Post subject: Reply to: SEARCHING A STRING IN PDS MEMBERS
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    Post subject: Reply to: SEARCHING A STRING IN PDS MEMBERS
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    Post subject: Reply to: SEARCHING A STRING IN PDS MEMBERS
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: 8787
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 5:14 pm    Post subject: Re: Reply to: SEARCHING A STRING IN PDS MEMBERS
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

Senior Member


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

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

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

Moderator


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

PostPosted: Wed Dec 23, 2009 5:27 pm    Post subject:
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: 8787
Location: Welsh Wales

PostPosted: Wed Dec 23, 2009 5:28 pm    Post subject:
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    Post subject: Reply to: Searching a string PDS members
Reply with quote

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

Senior Member


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

PostPosted: Wed Dec 23, 2009 6:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts String to ASCII conversion JPLMARTINS COBOL Programming 4 Sun Sep 29, 2019 12:00 am
No new posts Convert string to packed format ajaydwivedi4u COBOL Programming 6 Sat Sep 21, 2019 5:01 pm
No new posts Is possible to concatenate multiple P... Poha Eater DFSORT/ICETOOL 6 Fri Aug 02, 2019 1:21 pm
No new posts Search string from concatenated input... srini24 JCL & VSAM 8 Sat Mar 30, 2019 9:51 pm
No new posts How to copy\replace the members in pr... abdulrafi JCL & VSAM 6 Fri Mar 22, 2019 7:02 pm

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