What it means
The EXEC interface program (DFHEIP) issues AEIV when LENGERR was raised on a command that has no RESP or NOHANDLE option, or the program has not run HANDLE CONDITION for it. CICS then takes the default system action, which is normally to abend the transaction.
The transaction is ended with a CICS transaction dump. IBM describes the whole group of AEIx abends together under AEIA.
On LINK, LENGERR RESP2 11 means the COMMAREA length is below 0 or above the permitted length, 12 a negative DATALENGTH, 13 a DATALENGTH greater than LENGTH, 26 a zero COMMAREA address with a nonzero length, and 27 an INPUTMSG length below 0 or above 32767.
Typical causes
- A command raised LENGERR and had neither a RESP nor a NOHANDLE option.
- No EXEC CICS HANDLE CONDITION for LENGERR was active when the command ran.
- On LINK, the COMMAREA length is invalid, or DATALENGTH is negative or larger than LENGTH.
- The COMMAREA address is zero but the length is nonzero.
- LENGTH exceeds the data area given in COMMAREA, causing a destructive overlap while copying (RESP2 not set).
How to fix it
- Change the program so the condition does not occur.
- Add the RESP option to the command and test the response.
- Or code HANDLE CONDITION for the condition and decide what the program should do then.
- Use EIBRESP2 or EIBRCODE from the EIB to help find the cause.
- The function code of the failing command is at offset X'1B' in the EIB, EIBRCODE at X'1D', EIBRESP at X'4C' and EIBRESP2 at X'50'; use them in the dump to identify the command.
- On LINK, make LENGTH match the data passed in the COMMAREA, and never specify 0 for LENGTH.