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
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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