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

Help needed about multiple string search


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sornavel

New User


Joined: 26 Mar 2005
Posts: 2

PostPosted: Mon Feb 06, 2006 1:01 pm
Reply with quote

hi all,
could anyone of you please tell me the way to find out the combination of more than one search string (will not be in the same line) in different lines inside a PDS using the option 3.14 or 3.15? Please find the following example below to understand my question

i want to find out both strings 'ABC' and 'DEF' in any member of a PDS say HLQ.ABCD(*). how to do it?

in the output, i'm expecting only the members having both 'ABC' and 'DEF' present in different lines in a member

Please suggest me the way.
thanks,
sornavel.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Feb 06, 2006 3:09 pm
Reply with quote

What the problem you are facing while using 3.15 for the same...

Code:
Command ===>                                                                 
                                                                             
Search DS Name  . . 'HLQ.ABCD'                                           
PDS Member List . . *         (blank/pattern - member list, * - search all)   
                                                                               
(Leave Search DSN "blank" for concatenated-uncataloged-password panel)       
                                                                               
Enter Search Strings and Optional operands (WORD/PREFIX/SUFFIX,C)             
   Caps . .                                                                   
   Caps . . 'ABC'                                                         
   Caps . . 'DEF'                                                       
   Asis . .                                                                   
   Asis . .                                                                   


Regards,

Priyesh.
Back to top
View user's profile Send private message
sornavel

New User


Joined: 26 Mar 2005
Posts: 2

PostPosted: Mon Feb 06, 2006 5:17 pm
Reply with quote

Priyesh,
thanks for the reply. if i use 3.15 in this manner, it gives me the list of components in the PDS HLQ.ABCE(*) which use either 'ABC' or 'DEF'. but i want the list of components which use 'ABC' AND 'DEF' (ie. similar to logical AND condition). could you please tell me the method of getting the same?

thanks,
sornavel.
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Wed Feb 08, 2006 6:11 am
Reply with quote

Sornavel,

In ISPF 3.14, you have an option "Specify additional search strings" at the bottom-left corner. Select that option and hit enter, it will throw you another screen where you can enter more than one search string.

Let me know if this did not work.

regards,
Yuvaraj
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Wed Feb 08, 2006 6:13 am
Reply with quote

I am sorry, my reply is not a solution to your question.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Feb 08, 2006 10:35 am
Reply with quote

There is no built-in option to process your request in SUPERC. The closest statement in SUPERC is SRCHFORC, which looks for additional strings in the same line.

Solutions:
1. Invoke SUPERC for each string individually. Sort and compare the results (member list) where SUPERC found your strings to get a list of matched members.
2. Use REXX, either by invoking SUPERC and comparing the result, or using batch edit macro to FIND the strings.

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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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
Search our Forums:

Back to Top