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

User Cancels the job


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

New User


Joined: 16 Nov 2016
Posts: 7
Location: india

PostPosted: Sat Mar 04, 2017 8:21 pm
Reply with quote

HI All,

I have a small question from db2 cursor.

If a cursor updates 5K records when a condition satisfied and commit is not-used yet till 4K record.

If the user cancels the job from spool, will all updates(till 4K) be reflected in the table? or will get roll back?

Thanks in advance.
Pandu
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Mon Mar 13, 2017 4:34 pm
Reply with quote

updates are in the table, but all updated rows will be locked until a commit is issued. a cancel before the commit will roll back all those changes (that's why a cancel can take some time ).

If you dare to read with UR you might see the updated values.
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 PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top