Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to search for two components

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to search for two components
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: 1439
Location: Bangalore,India

PostPosted: Mon Jan 14, 2008 10:14 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: How to search for two components
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: 2360
Location: Israel

PostPosted: Tue Jan 22, 2008 7:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts Copy one PDS to another PDS based on ... alluri12 JCL & VSAM 10 Tue Sep 29, 2015 8:10 pm
No new posts Search and replace the key in the report V S Amarendra Reddy SYNCSORT 1 Thu Jul 09, 2015 7:41 pm
No new posts Search Member Name in Library (DSORG=... jackare JCL & VSAM 9 Thu Jun 25, 2015 8:15 pm
No new posts Suggestion on Search and Split using ... shiitiizz DFSORT/ICETOOL 14 Tue Jun 16, 2015 1:20 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us