M204.2140
M204.2140 Function cannot execute while cursor is open against specified set
Either of these:
- A Host Language program has attempted to re-execute an IFFIND, IFFDV, IFSORT, or IFSRTV function that would invalidate an existing record or value set that has cursors open against it.
 - A Host Language program has attempted to execute an IFDSET function that would delete all records from a record set that has cursors open against it.
 
Response: Close all cursors open against the record or value set, and retry the operation.
Message attributes:
| RETCODEO=0 | Sets online return code | 
|---|---|
| RETCODEB=4 | Sets batch (single user) return code | 
| CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter | 
| AUDITER | Writes the message with line type ER to the audit trail | 
| COUNT | Increments the error count (ERCNT) parameter |