What it means
ENDFILE is RESP 20 with RESP2 90 on READNEXT. An end-of-file condition was detected during the browse.
The default action is to end the task abnormally.
Typical causes
- The browse has read to the end of the file.
- The program does not test for ENDFILE, so the default action applies.
How to fix it
- Test RESP after every READNEXT and leave the browse loop on ENDFILE.
- Code RESP so the task does not end abnormally.
Example
Illustrative only; names and values are invented.
PERFORM UNTIL WS-RESP = DFHRESP(ENDFILE)
EXEC CICS READNEXT FILE('ORDFILE') INTO(WS-ORD) RIDFLD(WS-KEY)
RESP(WS-RESP) END-EXEC
END-PERFORM