MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting a list of members in a PDS that has the input string

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Tue Apr 25, 2006 1:17 am    Post subject: Getting a list of members in a PDS that has the input string Reply with quote

Hi,

My requirement is to get a list of members in PDS that has a given string in it.

I tried using 3.14 search. But the result shows all the lines that contains the string.

Is it possible to get the list alone ?
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Tue Apr 25, 2006 5:57 am    Post subject: Reply with quote

use IDPFX option.
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Tue Apr 25, 2006 6:52 am    Post subject: Reply with quote

Hi acevedo,

Can you please explain me how to use this option?

Regards,
Vivek.G
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Apr 25, 2006 7:30 am    Post subject: Reply with quote

vivek1983,

Try this job

Code:

//STEP0100 EXEC PGM=ISRSUPC,PARM=(SRCHCMP,IDPFX,'')
//NEWDD    DD DSN=YOUR PDS TO BE SEARCHED,
//            DISP=SHR
//OUTDD    DD DSN=&T1,DISP=(,PASS),SPACE=(CYL,(10,10),RLSE)
//SYSIN    DD *
SRCHFOR  'your search string'
/*
//STEP0200 EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD DSN=&T1,
//            DISP=SHR
//SORTOUT  DD SYSOUT=*
//SYSIN    DD *
  SORT FIELDS=COPY
  INCLUDE COND=(01,133,SS,EQ,C'your search string',AND,
                05,007,CH,NE,C'SRCHFOR')
  OUTREC FIELDS=(1,10)
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Tue Apr 25, 2006 8:59 am    Post subject: Reply with quote

You can use "SRCHFOR <String>" in the member listing screen. Alternatively you can use SCANPDS from "http://www.sillysot.com/mvs/".
Back to top
View user's profile Send private message
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Wed Apr 26, 2006 5:53 am    Post subject: Reply with quote

Hi,

Thanks all for your help.
Its working as i wanted to. Very Happy

Regards,
Vivek.G
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group