bb396515_S_Minor_Codes___Mainframe_Code__DML_FUNCTION
[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.
IDMS Minor Codes - Mainframe Code
DML FUNCTION