MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Way to search for multiple strings in multiple PDS?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Wed Jun 23, 2004 11:02 am    Post subject: Way to search for multiple strings in multiple PDS? Reply with quote

Friends,
Is there any way to search for multiple strings in multiple PDS? I tried it in 3.14 option of ISPF in batch mode by editing the jcl to concatenate the datasets I need to search , but it is not showing me the correct answer. It seems searching only in the last data set listed in the JCL. Could any one help me?
I am copying the JCL I used. This is generated by 3.14 batch option of ISPF.
Code:

//X1958688B JOB (B,Q,WQ2500),'75  TESTING         ',                     
//         MSGCLASS=V,NOTIFY=&SYSUID                                   
//SEARCH  EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,                                           
//            'ANYC')                                                   
//NEWDD  DD DSN=BJBB76.CIWP.SYS.IWP.JCL.SR633,                         
//          DISP=SHR                                                   
//       DD DSN=BJBB76.CIWP.SYS.IWP.JCL.Y2004,                         
//          DISP=SHR                                                   
//OUTDD  DD SYSOUT=(A)                                                 
//SYSIN  DD *                                                           
SRCHFOR  'NX005'                                                       
SRCHFOR  'OL430'                                                       
/*                                                                     

The out put of this jcl is wrong becuase I could find NX005 in the first data set BJBB76.CIWP.SYS.IWP.JCL.SR633 and it is not showing in the results. What I found is that it is not at all considering BJBB76.CIWP.SYS.IWP.JCL.SR633 data set for searching
Would appreciate all the help in this regard
Thanks
Jimmy
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Wed Jun 23, 2004 11:16 am    Post subject: Reply with quote

jimmy_augustine,

Add the parm XREF and run the JCL.
Code:

//X1958688B JOB (B,Q,WQ2500),'75  TESTING         ',                     
//         MSGCLASS=V,NOTIFY=&SYSUID                                   
//SEARCH  EXEC PGM=ISRSUPC,                                           *
//            PARM=(SRCHCMP,XREF,                                           
//            'ANYC')                                                   
//NEWDD  DD DSN=BJBB76.CIWP.SYS.IWP.JCL.SR633,                         
//          DISP=SHR                                                   
//       DD DSN=BJBB76.CIWP.SYS.IWP.JCL.Y2004,                         
//          DISP=SHR                                                   
//OUTDD  DD SYSOUT=(A)                                                 
//SYSIN  DD *                                                           
SRCHFOR  'NX005'                                                       
SRCHFOR  'OL430'                                                       
/*   


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimmy_augustine
Beginner


Joined: 23 Jun 2004
Posts: 32
Topics: 13

PostPosted: Wed Jun 23, 2004 12:07 pm    Post subject: Reply with quote

Kolusu,
Great!!! That worked. Thanks a million:) Smile)

Regards

Jimmy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group