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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
ssaurabhola

New User


Joined: 13 Jun 2007
Posts: 3
Location: Delhi

PostPosted: Tue Aug 14, 2007 10:20 am    Post subject: How to search a string in all members of a PDS?
Reply with quote

I have a PDS with 300 members and i need to search a string 'TSIA' in all those members.how can i go about it??
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Aug 14, 2007 10:40 am    Post subject:
Reply with quote

You can use ISPF search option 3.14 or 3.15
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 14, 2007 11:31 am    Post subject:
Reply with quote

If you have the newer ISPF level, you can use the SRCHFOR command.

O.
Back to top
View user's profile Send private message
pcoreddy

New User


Joined: 14 Mar 2007
Posts: 24
Location: Mysore

PostPosted: Tue Aug 14, 2007 1:06 pm    Post subject: Re: How to search a string in all members of a PDS?
Reply with quote

open the PDS In 3.4

give SRCH FOR IN COMMAND LINE AND ENTER

then give ur sring and enter

it will show the string found if the string is there
Back to top
View user's profile Send private message
eHorizon.Andrew

New User


Joined: 18 Jan 2007
Posts: 28
Location: Bank of communications

PostPosted: Fri Aug 17, 2007 2:23 pm    Post subject:
Reply with quote

hi ssaurabhola,
you can use following code.

Code:
//FINDSRA JOB '000000000000000000CMP',               
//     CLASS=3,NOTIFY=you id,                       
//     MSGCLASS=R                                     
//ONLINE  EXEC PGM=ISRSUPC,                           
//            PARM=(SRCHCMP,                         
//            'ANYC')                                             
//NEWDD DD DSN=THE PDS YOU WANT TO SEARCH,               
//          DISP=SHR                                 
//OUTDD  DD SYSOUT=*                                 
//SYSIN  DD *                                         
SRCHFOR  'TSIA'


Then you can go to output queue to check the info you want.

thanks and regards, if you have any question, please let me know.
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Fri Aug 17, 2007 7:59 pm    Post subject:
Reply with quote

If you have few member( In your case) use TSO command

Code:
SRCHFOR 'string'


if more members use 3.14 option
Back to top
View user's profile Send private message
mastrahoyar

New User


Joined: 03 Mar 2007
Posts: 17
Location: hyd

PostPosted: Mon Aug 20, 2007 7:15 pm    Post subject: Reply to: How to search a string in all members of a PDS?
Reply with quote

Go to 3.14
give Search String . . 'string name'

And in the Dataset name give 'dataset(*)'

* is used to search in all the members of the PDS.

Mastraho
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

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