MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IMS ADF II - ROLLBACK abends with U0778

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
Karthik1980
Beginner


Joined: 03 Jul 2017
Posts: 2
Topics: 1

PostPosted: Tue Jul 04, 2017 8:14 am    Post subject: IMS ADF II - ROLLBACK abends with U0778 Reply with quote

HI Friends,

I am new to IMS ADF II. I am working on changing an existing AEXIT routine in IMS ADF. I am trying to give an ROLB call in the AEXIT routine that is called from the ADF AUDIT module. The ROLB call succeeds in the AEXIT routine with blank status code, but when the control returns to the Transaction driver program it abends with U0778. I could see that U0778 abend code is an for ROLLBACK call, but the ROLB call succeeds in AEXIT routine not sure why it failing in Transaction program.

ROLB call sample used in AEXIT

CALL PLITDLI(TWO, ROLB,IOPCB)

Could any of you help me in solving this issue.

Thanks
Karthik
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Tue Jul 04, 2017 12:29 pm    Post subject: Reply with quote

Karthik1980,

You might be issuing a ROLL call instead of ROLLB. Check this link for detailed explanation of the abend

https://www.ibm.com/support/knowledgecenter/en/SSEPH2_13.1.0/com.ibm.ims13.doc.msgs/msgs/0778.htm

You also might want to read this which explains how to back out to a prior commit and also explains the difference between the 3 calls (ROLL, ROLB, and ROLS)

https://www.ibm.com/support/knowledgecenter/en/SSEPH2_13.1.0/com.ibm.ims13.doc.apg/ims_backingoutpriorcommit.htm
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Karthik1980
Beginner


Joined: 03 Jul 2017
Posts: 2
Topics: 1

PostPosted: Tue Jul 04, 2017 1:09 pm    Post subject: IMS ADF II - ROLLBACK abends with U0778 Reply with quote

Hi Kolusu,

Thanks for your reply. The information in the links you have shared are very useful. I have gone through them. In my code I have given the ROLB call only not the ROLL call. But not sure why it abends with U0778, when the control leaves the AEXIT routine and reaches the transaction driver program, even though the ROLB call succeeds in the AEXIT Routine.


Thanks
Karthik
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11794
Topics: 74
Location: San Jose

PostPosted: Tue Jul 04, 2017 5:50 pm    Post subject: Re: IMS ADF II - ROLLBACK abends with U0778 Reply with quote

Karthik1980 wrote:
Hi Kolusu,

Thanks for your reply. The information in the links you have shared are very useful. I have gone through them. In my code I have given the ROLB call only not the ROLL call. But not sure why it abends with U0778, when the control leaves the AEXIT routine and reaches the transaction driver program, even though the ROLB call succeeds in the AEXIT Routine.


Thanks
Karthik


Looks like your Main transaction is still active and it is causing the ROLLBACK to fail. So When you Leave AEXIT, do not go back to the active transaction but go back to IMS, there by ending the transaction.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group