I am doing commit control update in a rpgle program, and ran into a snag. I read files A & B to update along with file C. I save control fields from A and B and compare after doing next reads; to update C. When I have a change, in control fields, I update C and commit all my changes to A, B, and C. I then go and do my changes for A & B. But when I go to update B, I get an error message saying I have not read the record I want to update! Now I have stepped through the logic, with debug, and found that when I do the commit statement, I loose my record! Anyone have a clue as to why this happens?

Reply With Quote