Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1187
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: 6258
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: 8593
Location: Back in jolly old England

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: 8593
Location: Back in jolly old England

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: 6258
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: 1187
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: 8593
Location: Back in jolly old England

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: 6258
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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Need a help how to replace a string i... gurunath82 CLIST & REXX 12 Tue Jul 26, 2016 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us