View previous topic :: View next topic |
Author |
Message |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Tue Apr 25, 2006 1:17 am Post subject: Getting a list of members in a PDS that has the input string |
|
|
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 |
|
 |
acevedo Beginner

Joined: 03 Dec 2002 Posts: 127 Topics: 0 Location: Europe
|
Posted: Tue Apr 25, 2006 5:57 am Post subject: |
|
|
use IDPFX option. |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Tue Apr 25, 2006 6:52 am Post subject: |
|
|
Hi acevedo,
Can you please explain me how to use this option?
Regards,
Vivek.G |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Apr 25, 2006 7:30 am Post subject: |
|
|
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 |
|
 |
sriramla Beginner
Joined: 22 Feb 2003 Posts: 74 Topics: 1
|
Posted: Tue Apr 25, 2006 8:59 am Post subject: |
|
|
You can use "SRCHFOR <String>" in the member listing screen. Alternatively you can use SCANPDS from "http://www.sillysot.com/mvs/". |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Wed Apr 26, 2006 5:53 am Post subject: |
|
|
Hi,
Thanks all for your help.
Its working as i wanted to.
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 |
|
 |
|
|