Posted: Mon Jan 05, 2009 9:52 am Post subject: an idea to search 7 files one after another.
Hi,
We receive 7 big files and need to search through them for a particular string. I need your help as we want to automate this process. The length of each files is 567 and record format is FB.
For example, if we need to search for "ABC123" (starts at 10th position) in all these files, I would code it like this:
But, the disadvantage with this method is one would not know in which file the record is found as we need to act on the found record. Our idea is to search each file individually, if not found then go to next file and so on.....
Please suggest.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Thanks for the idea. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Kolusu, I have searched the forum but found nothing. There were entries found but they use IDPFX on PDS. I tried using it on PS files and it gave "Erroneous or Conflicting usage of parameter" in the sysout ! I think IDPFX does not work for PS files.
Please help.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Fri Jan 23, 2009 8:52 am Post subject:
either set up a step for each file, or
instead of having each file a PS, make it a member of a PDS and then use 3.14 and IDPFX.
though the PDS idea seems cumbersome, you would never have to change your jcl.
actually, what will you be doing when you have these 'hits'?
if you could explain why and what you are going to be doing, something else could be suggested.
But at this point, we only know you want to look at a bunch of big files. _________________ Dick Brenholtz
American living in Varel, Germany
Is there a unique field within the record which could be used to identify which file it came from? If there is no such field, can you preprocess the data to add one? Taking into account the size of these files, might there be a way to automate this when the data is first created? _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum