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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help with below queries ashek15 DB2 3 Thu Mar 23, 2017 1:38 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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