Hi All,
I am doing UPDATE in two tables in a single program (Program with Checkpoint Restart Logic).
I want to commit the changes after processing five records.So is it reuired to mention two COMMIT
to save the changes in two different table?
My question is - If there are 'n' no. of tables to be updated, is it reuired to give 'n' no. of
EXEC SQL
COMMIT WORK
END-EXEC
?
Or only one COMMIT is sufficient to save all the changes made to 'n' no. of tables.
Many Thanks in advance.
Nihar
DB2 COMMIT??
-
- Posts: 7
- Joined: Thu Oct 09, 2008 1:40 pm
- Skillset: Cobol,Db2,Jcl,CICS,VSAm,MVS,PL1
- Referer: Internet Search
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: DB2 COMMIT??
Hello,
One COMMIT handles everything that has been added/deleted/changed since the last checkpoint.
If you are implementing checkpoint/restart, keep in mind that files other than database tables must be syncronized on a restart. This is also tru of any report(s) being created by the process.
One COMMIT handles everything that has been added/deleted/changed since the last checkpoint.
If you are implementing checkpoint/restart, keep in mind that files other than database tables must be syncronized on a restart. This is also tru of any report(s) being created by the process.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Commit issued without hold and without close cursor statemen
by ravi11081992 » Sat Jan 22, 2022 2:42 pm » in DB2 - 2
- 2243
-
by engh
View the latest post
Tue Sep 20, 2022 6:07 pm
-