A SEQUENCE ERROR FOR A SEQ. ACCESSED INDEXED FILE.
THE KEY HAS CHANGED BETWEEN THE READ AND REWRITE.
Without message numbers, I'd tend to believe that the error is a program generated error and maybe issued in error....
Look for the logic that generated the error text and then look through the program for way to get to the error text logic. maybe there you can find why your program is branching to that logic.