DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Hi kumar,
When your program abends, (if it truly abends), the system will automatically 'rollback' (backout) all of your updates to the last 'commit', or in the absence of a 'commit', to the beginning of your program.
If your program does not, in truth, abend, you can do
EXEC SQL
ROLLBACK
END-EXEC
And all of your updates will be rolled back as if your program abended.
How many rows are you updating and would want rolled back?
Dave |
|