Hi,
I'm doing join between 2 tables. A and B. B has duplicate records . First, I need the rows to repeat so duplicate is not a problem. Once the join is done I have to check on some conditions and if they are met I need to delete those rows. I'm using the below code but it is not deleting the right rows.
First condition is one Variable which is "EQ". If EQ=0 then I want to delete that row from hash.
second condition is if EQ>10 then leave the Ist row but delete any other duplicate rows.
set WORK.lookup_2 ;
do _iorc_ = b.find(key:A,key:B) by 0 while (_iorc_ = 0) ;
if eq=0 then _iorc_ = b.removedup();
_iorc_ = b.find_next() ;