date: Fri, 13 May 2022 19:10:59 +0000
from: Greg Wilburn <gwilburn@xxxxxxxxxxxxxxxxxxxxxxx>
subject: RE: How to Undo an SQL Insert
Unfortunately, the file does not have a unique key or auto-id field, and
it is not currently journaled. It's one of the biggest files on our system
@ 36 million rows. As a transaction file, rows are never deleted (only
Some more info
I have never used journaling before (no rollback or commit).
My procedure is inside a service program that updates other files
This service pgm is used all over the place.
So if I turn on journaling for this file would it journal all
transactions? Or just those from my program? All other programs updating
this file do so via RPG (not SQL).
For now, I have added an extra SQL statement to check for the condition
before attempting to insert - but that only checks for the condition that I
This will most likely take care of any issue, but...
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.