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

How to search a string in all members of a PDS?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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
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: 2358
Location: Israel

PostPosted: Tue Aug 14, 2007 11:31 am
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top