IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to search for two components


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
spadma

New User


Joined: 18 Dec 2007
Posts: 9
Location: India

PostPosted: Mon Jan 14, 2008 8:19 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 10:14 pm
Reply with quote

Swaraj,

Logically speaking your condition is 'A and B'. You didn't say how do you want to do it?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jan 15, 2008 1:38 am
Reply with quote

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
View user's profile Send private message
spadma

New User


Joined: 18 Dec 2007
Posts: 9
Location: India

PostPosted: Tue Jan 22, 2008 7:31 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 22, 2008 7:40 pm
Reply with quote

Run two different SUPRC jobs, then look for duplicate results using ICETOOL's SELECT function.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts first column truncated in search result IBM Tools 13
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top