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
 
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 3 Sat Oct 14, 2017 2:29 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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