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 

Superc search; Show lines above/below search string hits

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


Joined: 02 Dec 2002
Posts: 22
Topics: 9
Location: www.state.ct.us

PostPosted: Tue May 24, 2005 7:35 pm    Post subject: Superc search; Show lines above/below search string hits Reply with quote

Hi,
I'm searching for strings. I'd like superc to also show a few lines above and below the string. I tried CHNG, CHNGV, but this does not work with the search. Any ideas ? Thank You.

Code:
//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'                                                       
/*                                         

_________________
Regards,
Pete.
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed May 25, 2005 4:32 am    Post subject: Reply with quote

You need something like this:

Code:

//JOBNAME JOB (S9998),'SEARCH',CLASS=B
//SEARCH EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'LPSF')
//NEWDD DD DSN=OPER.JCL.CNTL,
// DISP=SHR
//OUTDD DD SYSOUT=(X)
//SYSIN DD *
SRCHFOR 'CONTROL'
LPSFV 5
/*



Cheers,
Merv
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
pete
Beginner


Joined: 02 Dec 2002
Posts: 22
Topics: 9
Location: www.state.ct.us

PostPosted: Wed May 25, 2005 6:55 am    Post subject: Reply with quote

Thank You Mervyn. Your help is appreciated.

Cheers.
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