Search the member in a pds containing a string



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Search the member in a pds containing a string

Postby shabukumar » Wed Dec 01, 2010 1:38 pm

Friends,

I have a pds containing 5 members named M1,M2,M3,M4,M5.

I am having a string named "IN THIS MEMBER" in M4.

From the Command Line Field on the Member List of my PDS, kindly let me know the command used to search for the member containing the string "IN THIS MEMBER" so that it should retrieve M4.

I tried with search for utility. I provided the pds name and the string to be searched. But it was showing the member list of the PDS, but not the exact member containing the string.

Awaiting your help.
Warm Regards
Shabukumar
Mainframe Trainer
What you learnt new in mainframe
shabukumar
 
Posts: 27
Joined: Thu Dec 18, 2008 4:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Search the member in a pds containing a string

Postby Akatsukami » Wed Dec 01, 2010 4:43 pm

At a certain level of ISPF (I forget which one exactly) you can issue a GLOBAL FIND command. Try "GLOBAL FIND 'IN THIS MEMBER'"; all members not containing that string should be excluded from the displayed list.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Search the member in a pds containing a string

Postby steve-myers » Thu Dec 02, 2010 12:00 pm

shabukumar wrote:... I tried with search for utility. I provided the pds name and the string to be searched. But it was showing the member list of the PDS, but not the exact member containing the string.
You can bypass the member list in SRCHFOR by specifying pds-name(*).
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post