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

usage SRCHFOR utility


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

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Tue Jun 01, 2010 4:45 pm
Reply with quote

Hi,
I have a requirement to get the string from the given PDS so have used the SRCHFOR utility which gives me the result with the no of lines with the string.

Code:

        //SYSIN  DD *     
          SRCHFOR  'STRING'
          CMPCLM 1:6       
        /*


Now i have to put with some condition saying if any PS file holding the STRING anywhere should give me the whole lines of that PS file.

Can i use the IF THEN ELSE in the SYSIN DD statements ????

Thanks in advance icon_rolleyes.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 01, 2010 4:48 pm
Reply with quote

under ISPF press PF1 and You will get all the options for the searchfor utility
or as an alternative look at the manuals
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ISPZPM61
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jun 02, 2010 9:45 pm
Reply with quote

SuperC can list only up to 50 lines of the member where the string was found
(can't say if it's 50 before and 50 after the string, or 50 lines all together, but anyway it can't be the whole member).

What have you achieved until now ?

Complete information about SuperC is in this book (Appendix A).
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 REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts STEM usage in REXX CLIST & REXX 14
No new posts SRCHFOR ‘string’ command inside P... TSO/ISPF 14
No new posts SRCHFOR with LMDLIST or LMMLIST TSO/ISPF 7
Search our Forums:

Back to Top