Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us