Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us