Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10457
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: 1275
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 Utility for search operation Gopalakrishna551 TSO/ISPF 11 Wed Jan 03, 2018 11:07 am
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts NULLFILE on ICEGENER Utility Ashishpanpaliya DFSORT/ICETOOL 5 Wed Nov 08, 2017 10:45 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us