DB2 For I Tips - Reusing Deleted Records
DB2 For I Tips - Reusing Deleted Records
Are there any drawbacks to using this option? Is it ok that the file is journaled
and under commitment control? Why isn't *YES the default on this option?
Arrival order will no longer have any meaning. Records might not be added to
the end to the file.
There are special considerations when using logical files that use LIFO or
FIFO ordering.
For full detail please reference the AS/400 Database Guide (SC41-9659-02)
page 5-3. There is also some information on page 2-3 & 2-4.
The difference comes when a record is written to a journaled file that specifies
REUSEDLT(*YES) and the write operation actually reuses a deleted record
position in the file. When a deleted record position is actually reused, a PX
"Record added directly to member" entry is written to the journal. APYJRNCHG
and RMVJRNCHG properly handle both the PT and PX entries, and always
applies or removes the correct record image to the correct record position in
the file.
1 of 2 3/19/2018, 7:45 AM
2 of 2 3/19/2018, 7:45 AM