IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

AEI2 abend


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandhyaimmadi

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Fri Oct 26, 2012 1:46 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 26, 2012 1:53 pm
Reply with quote

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
View user's profile Send private message
Amolondhe007
Warnings : 1

New User


Joined: 16 Apr 2007
Posts: 49
Location: Pune

PostPosted: Mon Oct 29, 2012 2:16 pm
Reply with quote

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
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Tue Oct 30, 2012 1:17 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
No new posts Need to get an DLI abend like U0200 IMS DB/DC 2
Search our Forums:

Back to Top