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

Data consistency in batch program


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

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Wed Apr 06, 2016 9:32 am
Reply with quote

I need to update two rows of one table in one execution of the COBOL batch program.

It is a deposit account table. The money has to be transferred from one account to another.

Either both of the two rows(accounts) are updated successfully, or the partial update has to be rolled back.

Please advise how I should implement the DB2 statement in this COBOL program.

Thanks.
Back to top
View user's profile Send private message
jacobdng

New User


Joined: 27 Aug 2006
Posts: 51
Location: Taiwan

PostPosted: Wed Apr 06, 2016 2:39 pm
Reply with quote

I have found the manual addressing how the unit of recovery works.

No need to adive. Thanks.
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 Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top