[CODE] 40 [DML FUNCTION] 
The WHERE clause in an OBTAIN NEXT logical-record request is inconsistent with a previous OBTAIN FIRST or OBTAIN NEXT command for the same record. Previously specified criteria, such as reference to a key field, has been changed. A path status of LR-ERROR is returned to the LRC block.