Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Does program completion commit the sql queries ?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Does program completion commit the sql queries ?
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    Post subject:
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    Post subject:
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    Post subject:
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.    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us