Joined: 06 Jun 2008 Posts: 8560 Location: Dubuque, Iowa, USA
From the manual on the READNEXT EIBRESP codes:
10 Neither the LENGTH nor the SET option is specified for a file with variable-length records or a BDAM file with undefined-format records.
11 The length of the record read with the INTO option specified exceeds the value specified in the LENGTH option; the record is truncated, and the data area supplied in the LENGTH option is set to the actual length of the record.
13 An incorrect length is specified for a file with fixed-length records.
Default action: terminate the task abnormally.
So your easiest path forward is to look at the EIBRESP2 value and see which of these three conditions applies, and proceed accordingly.