Page 1 of 1

Search the member in a pds containing a string

PostPosted: Wed Dec 01, 2010 1:38 pm
by shabukumar
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.

Re: Search the member in a pds containing a string

PostPosted: Wed Dec 01, 2010 4:43 pm
by Akatsukami
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.

Re: Search the member in a pds containing a string

PostPosted: Thu Dec 02, 2010 12:00 pm
by steve-myers
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(*).