View previous topic :: View next topic |
Author |
Message |
rakshith Beginner
Joined: 26 Jul 2005 Posts: 32 Topics: 16 Location: bangalore
|
Posted: Mon Jan 02, 2006 9:11 am Post subject: sequential read of VSAM file |
|
|
hi all ,
i have doubt regarding reading the file sequentially,
I have a file like this ,
state zip city rating
aa 12345 city1
bb 22222
cc 33333 city.
dd 44444
..
..
first read the file according with the keys state, zip and city
assume tha we did using using startbr and readnext
here i have to check whether record found or not.
if record found do some logic let say logic1.
if record not found i have to once again read same file with keys state and zip only not city.
if record found in this read without city i have to do the same logic i.e logic1.
My question is how to read the whole file to get appropriate rating ?
do any one having good method please share with me
[/b] |
|
Back to top |
|
 |
Ravi Beginner
Joined: 27 Jun 2005 Posts: 88 Topics: 2
|
Posted: Mon Jan 02, 2006 12:32 pm Post subject: |
|
|
rakshith, can you please explain your logic.
According to your posting, for both keys you are doing LOGIC1. So why don't you just do with state+zip only???
Explain your question more with some examples. You has given the INPUT. Now how shall the Output be?? Is there any grouping for ratings has to done??? |
|
Back to top |
|
 |
|
|