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

-911 will rolled back the transaction.


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

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Tue Aug 14, 2007 8:09 am
Reply with quote

Hi,

I try to solve the -911 (Dead lock) contention issue. For that i explicitly give the commit while we receive the -911.

Ex:

I plan to code like,

IF WS-SQL-CODE = -0911
EXEC SQL
COMMIT
END-EXEC
END-IF.

but my doubt is,

-911 THE CURRENT UNIT OF WORK HAS BEEN ROLLED BACK DUE TO
DEADLOCK OR TIMEOUT. REASON reason-code, TYPE OF
RESOURCE resource-type, AND RESOURCE NAME resource-
name.

Is my code will commit the transaction, or while getting the -911 from the DB2 Detecter itself is it rolled back the transaction?

Please let me know some detailed information.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 14, 2007 4:16 pm
Reply with quote

as the -911 says, your current unit of work has been rolled back. If you issue a COMMIT, there is nothing to commit.

What you need to do is restart you last current unit of work.

Are you sure that you did not receive a -913 and ignore it.

you need to read chapter 4 of the sql programming and application guide.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts TWA size of the CPLT transaction CICS 0
No new posts Invoke IMS transaction from .NET IMS DB/DC 1
Search our Forums:

Back to Top