When records are deleted from a IBM i database file, the data can no longer be accessed by programs. While the deleted records continue to occupy space in the file until they are removed using a function such as RGZPFM or CPYF with COMPRESS (*YES), the data itself is no longer available.
ProData utilities offer two methods to retrieve deleted records.
Two methods can then be used to retrieve the record(s).
1) The desired deleted records can be copied back into the original file. Use CPYF (with *DROP in Record format field mapping, if RRN's were requested) to copy the appropriate records back to the original file. In this case the retrieved records are placed at the end of the file.
2) Once the deleted records to be restored have been identified, use the RDR function within DBU to reactivate the record(s) in place, in the original file.
**Hint** Building logicals over the retrieved deleted records will help in locating the correct deleted records. The physical RRN is showed on the display of the logical file records.
For more information on RDR, please visit the RDR product page.
DBU access to the System i AS/400 database is available thru the traditional green screen, our graphical user interface and even thru IBM's Systems Navigator and WDSc. Just let us know what you are most comfortable with & we will get you up and running!
IBM Platforms
AS/400, iSeries, i5, Sytem i, IBM i and Power Server