OK, here's what it says to do. The key statements: BY PRODNO CPNP PLANT PART_NO COST_YEAR; IF NOT FIRST.CPNP and LAST.CPNP and PLANT='USM' THEN DELETE; Assuming that these are the statements in the original code, it means: If a block of records (must be more than one record in the block): share the same PRODNO and CPNP, and the last record in the block is USM, then delete that last record of the block, keeping all the earlier records in the block. You can see why many of us doubt that this is the right thing to do, but that's what the code is saying. Good luck.
... View more