To recover the information in a damaged Agenda file, you use the file recovery utility called DB2STF. This program exports the information from the damaged file to a structured file (STF), preserving as much information as possible. After using DB2STF, you create a new Agenda file, import the information from the STF file, and then recreate the structure of the original file.
If a file becomes damaged, Agenda 2.0 displays the DMGD! Indicator in the upper right corner of the screen and the Damaged File dialog box opens.
The Damaged File dialog box gives you two choices. You can:
If you save to a new file, the new file is damaged, but it does contain the changes you made since you last saved the file. If you quit without saving the file, the original file may not be damaged, but you will lose the work that you just did.
If you save the damaged information to a new file, Agenda gives the new file the same name as the original, but adds an @ sign to the name (MYIFO.AG becomes MYINFO@.AG).
After you save the damaged information to a new file, Agenda displays
the Select File dialog box. Choose a different file to retrieve
or press ESC to quit Agenda and return to the DOS prompt.
What DB2STF Recovers
DB2STF recovers the following parts of an Agenda file:
DB2STF does not recover:
DB2STF includes an option to convert conditional assignments to
explicit assignments1 when creating the structured
files. However, you must reconstruct any other lost parts after
running DB2STF.
Using DB2SFT
DB2STF has three choices:
To run DB2STF:
At the DOS prompt, enter:
db2stf filename [/o=newfile] [/c]
For example:
db2stf myinfo@ /o=mytemp /c
In this example DB2STF saves the information in MYINFO@.AG to a structured files called MYTEMP.STF and changes conditional assignments to explicit assignments.
If the damaged file has a password, DB2STF asks you to enter it.
DB2SFT displays a series of dots on the screen as it processes
the damaged file. When it finishes the STF file will be created.
Reconstructing the
Damaged File
After running DB2STF, you must reconstruct the file. To reconstruct the recovered file, you must create a new Agenda file and then import the information from the structured file into it.
Agenda creates the new file and displays the Initial View. After you import the structured files into the new Agenda file, this view contains the recovered information. To reduce the amount of time Agenda takes to import the information, turn off conditions and actions in this new file by the following:
When you finish restructuring the new Agenda file, you can use this same procedure to turn conditions and actions back on.
To import the information from the structured file to the new Agenda file:
Agenda imports the structured file into the new Agenda file. The new file contains the items and categories from the original file as well as additional categories and items with information that DB2STF could not place in their original locations.
Each of the additional categories that DB2STF creates is a child
of another new category called DB2STF. To see this family of categories
in the category manager, press F9 (CAT MGR).
Creating a View for Recoverable Items
To use the recoverable items in reconstructing your file, it's a good idea to add a view that includes all of the categories created by DB2STF.
To add a view of recoverable items:
Agenda displays the new view with the items from the child categories of the DB2STF category. The view may contain one or more of the following sections:
These sections contain information that DB2STF recovered but couldn't associate with an item or category. Use the procedures described in the following to put information in proper locations in the new file.
As you work through these procedures, be sure to periodically
save the file (ALT-W).
Handling Discarded Items
The Discarded Items section contains items recovered from the Trash of the original file. If you want to keep any discarded items, assign them to the appropriate categories.
To assign items recovered from the Trash to their appropriate categories:
To discard items and categories:
Reconstructing Lost Text
The Lost Text section in the new view is usually listed last. It contains the items "Lost text number 1," " Lost text number2," , etc. The notes for those items contain text that was damaged in the original file and is no longer connected with any item, note, or category in the new Agenda file. To reconstruct this lost text, cut it from the note and paste it where you want it.
To reconstruct lost text:
Reconstructing Macros
The Macros section contains the items "Macro number 1," "Macro number 2," , etc. The notes for those items contain the contents of the macros from your original file. To reconstruct a macro, you need to cut the macro contents from the note and paste it into a new macro.
To reconstruct a macro:
Discard each item as you finish with it. When you finish, discard the Macros category.
The macros from the original file are now restored in the new
Agenda file.
Reconstructing Questionable Items and Notes
The Questionable section contains items that have kept their assignments, but have text or notes that are incomplete or otherwise damaged.
Reconstruct the text or notes of the items you want to keep. Discard
the others. When you finish, discard the Questionable category.
Restoring Conditional Assignments
If you chose not to change conditional assignments to explicit assignments when you use DB2STF, you need to restore conditional assignments in the new file.
As part of reconstructing the file, you turned off conditions and actions. You now need to follow the same procedure and turn them back on before you apply conditional assignments. Follow the procedure in "Reconstructing the Damaged File" to turn conditions and actions back on.
To restore conditional assignments:
Agenda applies all conditions in the file to all items in the
file, thereby restoring the conditional assignments.
Reconstructing Views and Settings
DB2STF does not include the following parts from your original file:
You must reconstruct these parts yourself.
1 An explicit assignment
is an assignment you enter. A conditional assignment is an assignment
that Agenda makes automatically.
Updated 27 April
1998
Michael Stocker
mdstockr@neo.lrun.com
PO Box 256, Canal Fulton, Ohio 44614-0256, USA