View previous topic :: View next topic
|
Author |
Message |
spadma
New User
Joined: 18 Dec 2007 Posts: 9 Location: India
|
|
|
|
Hi All,
i would like to get the list of components in which i have my two search strings.
Ex: A and B are the two search strings and i want the list of all components which contains both A and B from the PDS XYZ.ABC.PQRS.
Please let me know the search criteria. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Swaraj,
Logically speaking your condition is 'A and B'. You didn't say how do you want to do it? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
It's not elegant, but you can try this:
Run SUPRC
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,'ANYC')
//*
//NEWDD DD DSN=yr.ds.name,
// DISP=SHR
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'A',
SRCHFOR 'B'
In SDSF <enter> SE on the OUTDD line.
When you enter the OUTDD listing enter the following on the cmd line:
x all;f all 'a';f all 'b';f all 'g(s)'
The only lines displayed will be those containing the 'A' and 'B' strings and the member names they were found in. Unfortunately you'll have to manually delete the single occurrances.
If they're too numerous, c'est la vie. There's not much else aside from pgming, REXX, or an ISPF Macro. |
|
Back to top |
|
|
spadma
New User
Joined: 18 Dec 2007 Posts: 9 Location: India
|
|
|
|
Murali,
Just i want to get the list of members those contains A as well as B. I will give you an example
Lets take it this way A and B are copy books and the PDS which contains programs is "ABC.XYZ". Now i want all the programs which has
COPY A.
and
COPY B.
When we use general 3.14 it gives either COPY A or COPY B. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Run two different SUPRC jobs, then look for duplicate results using ICETOOL's SELECT function.
O. |
|
Back to top |
|
|
|