Hi Steve,
You want to use CLRPFM because it takes much time when using SQL DELETE without WHERE clause.
But with SQL DELETE (without WHERE clause) you can activate a "SQL fast delete" that supports Commit/Rollback.
How it works? Instead deleting row by row Db2 for i renames your table (OLDTABLE) and gives you a new empty table with your original name.
If commit: the renamed table (OLDTABLE) is deleted.
If rollback: Db2 for i deletes the new table and renames OLDTABLE table with its original name.
The overhead versus CLRPFM is very small.
How to activate SQL fast delete? Use SQL_FAST_DELETE_ROW_COUNT in QAQQINI file.
Hope this help.
------------------------------
Christian GRIERE
DB2 for i expert
Christian GRIERE Services
BUSSY ST GEORGES near PARIS
------------------------------
Original Message:
Sent: Thu August 29, 2024 03:17 PM
From: Steve Coyle
Subject: COMMIT and CLRPFM
If I have programs running under commit scoped to *JOB, will a CLRPFM
be rolled back?
It appears it does not?
Thanks!