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

Does program completion commit the sql queries ?


IBM Mainframe Forums -> DB2
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Thu Feb 11, 2010 12:40 pm
Reply with quote

Hi All,

I have a CICS / IMS (DB) program (PGM A) which calls CICS / DB2 program (PGM B) 5-6 times in a single transaction.

If a validation error occurs in PGM A it issues cics rollback, which rolls back any IMS ISRT or REPL and we want it to roll back any DB2 Update or Insert which must have happened in PGM B, since the complete transaction is a single unit of work. However it is not happening, any update of PGM A is getting rolled back but not of PGM B.

Could anyone pleae explain what shall I do in order to achieve this. I can not have DB2 and IMS calls in the same program since we do not have an IMS + DB2 Processor group (Endevor).

Thanks
Neelesh
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Thu Feb 11, 2010 3:39 pm
Reply with quote

As I understand your post your module executes in a CICS region, but via submodules both IMS DB calls, respectively embedded SQL are executed.

Is any module issuing an explicit DB2 COMMIT statement, by chance?
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Thu Feb 11, 2010 9:11 pm
Reply with quote

NO commit statements.

Thanks
Neelesh
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Mon Feb 15, 2010 8:18 pm
Reply with quote

How are you returning control back to PGM A ? Note :An implicit Commit is performed at every exec cics return statement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top