Need logic to read sequentially
Posted: Wed Feb 22, 2012 11:13 am
Hi,
I have the following logic to compare data with previous row -
Stagevar1 = input.name
stagevar2 = (if stagevar1 = stagevar3 then 1 else 0)
stagevar3 = stagevar1
The problem is - It needs the file to be sorted on field name. I just want the parallel job to read the records sequentially without any sort and output the result.
Any help is really appreciated.
Thanks,
Vishal Gupta
I have the following logic to compare data with previous row -
Stagevar1 = input.name
stagevar2 = (if stagevar1 = stagevar3 then 1 else 0)
stagevar3 = stagevar1
The problem is - It needs the file to be sorted on field name. I just want the parallel job to read the records sequentially without any sort and output the result.
Any help is really appreciated.
Thanks,
Vishal Gupta