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
 

 

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
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