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
 

 

Need code to search for a string in more than 1 data files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
richardmf

New User


Joined: 06 Apr 2006
Posts: 3

PostPosted: Thu Apr 06, 2006 10:37 am    Post subject: Need code to search for a string in more than 1 data files
Reply with quote

Hi,
I have a requirement to search for a particular string in more than 1 data file.
i.e. the user would input the file name with wild cards and the output should be the filenames in which the strings were found.

e.g. Input filename: A.B.C**.D* - This might give a list of more than one filename

In these files, I need to search for the string "30" at position 1-2.
The final output would be a list of filenames in which the search string was found and the list would be displayed to the user.

Is there any tool available that would get this done?
If not how should I proceed to get this done?

Thanks in advance.

Richard
Back to top
View user's profile Send private message

askmf

New User


Joined: 08 Feb 2006
Posts: 2
Location: Mysore

PostPosted: Thu Apr 06, 2006 11:11 am    Post subject: search for a string
Reply with quote

hi,
you can do through sort utility
and also from ispf menu i.e.3.14 option
Back to top
View user's profile Send private message
richardmf

New User


Joined: 06 Apr 2006
Posts: 3

PostPosted: Thu Apr 06, 2006 12:04 pm    Post subject:
Reply with quote

I had tried thru 3.14 for a single data file but it is not possible to give the position at where to search the string.
could you please let me know the details steps to follow for DSN with wildcards .
Back to top
View user's profile Send private message
steve

New User


Joined: 24 Mar 2005
Posts: 16
Location: Long Island

PostPosted: Thu Apr 06, 2006 4:01 pm    Post subject:
Reply with quote

If u have more than one data set (with similar attributes), u can do a DD Concatenation in 3.15. For doing this.. go to Search-ForE. Press Enter without giving any value to "Search DS Name . .". Then u can see search Concatenation window, which prompts u to enter the Ds names (max 4). This is not a perfect soln for u qn.. but hope it helps u some extent..

Steve-
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 Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 0 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 8 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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