×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
On Wed, 13 Oct 2010 09:20:43 -0600 (MDT), James Rich <james@xxxxxxxxxxx> wrote:
Hi everyone,
I just messed up big time and deleted almost all the records in a
journaled file while using interactive sql. Is there a way I can recover
the deleted records or rollback the delete without resorting to restoring
from last night's backup?
James Rich
I (fortunately) haven't had to do this for a while and I can't find my notes
but working from memory...
1) DSPJRN to an outfile selecting Outfile format *TYPE2. You can subset
your selection to user or entry type or whatever to get only the records you
want.
2) Run a query over the outfile from 1) to another outfile. Select only
field JOESD to get your data into another outfile.
3) Create an empty copy of your production database file.
4) Do a CPYF FMTOPT(*NOCHK) from the output of 2) to 3). After confirming
the data is good, you can then copy this file into your production file.
Gord
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.