View previous topic :: View next topic
|
Author |
Message |
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
Hi,
I am getting AEI2 abend when RETRIEVE command is executed.
here is how code looks like
Main program
EXEC CICS START
TRANSID('ECAC')
RESP(WS-CICS-RESP)
Sub program
EXEC CICS RETRIEVE
INTO(MQTM)
END-EXEC.
Can you please help me out with this |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
I just checked the manual
if You had looked it up Yourself instead of lazily sitting on Your ***
waiting for somebody to retype the info contained in the manual
You would have already found the solution
the manual is very clear about the miscoding error
even a stupid google search with CICS ABEND AEI2 would have solved Your problem |
|
Back to top |
|
|
Amolondhe007 Warnings : 1 New User
Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
Explanation
ENDDATA condition not handled.
This is one of a number of abends issued by the EXEC interface program.
Because of their similar characteristics these abends are described as a
group.
See the description of abend AEIA for further details.
AEIA Says: |
|
Back to top |
|
|
Peter cobolskolan
Active User
Joined: 06 Feb 2012 Posts: 104 Location: Sweden
|
|
|
|
From the code you supplied, I see you have not coded FROM() in the Start, and thus there is no data to be retrieved, which, of course, gives the Enddata condition , and the abend. You should ALWAYS retreive until the Enddata condition is signalled. This condition removes the AID (Automatic Initiate Descriptor) from the Queue. Otherwise the task will be started over and over. To pevent this, the AEI2 is issued, to make you aware of the missing handling of the condition. |
|
Back to top |
|
|
|