Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

usage SRCHFOR utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: usage SRCHFOR utility
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Tue Jun 01, 2010 4:48 pm    Post subject: Reply to: usage SRCHFOR utility
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
http://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: 1226
Location: Israel

PostPosted: Wed Jun 02, 2010 9:45 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts Comparex utility to Syncsort conversion mistah kurtz SYNCSORT 11 Fri Jul 22, 2016 1:53 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us