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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
Search our Forums:

Back to Top