Editors > Editor Reference > The Line Editor > Recovering Deleted Items: RECOVER-FD Command

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

Recovering Deleted Items: RECOVER-FD Command (Editor) (m618502+recoverfd.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

Recovering Deleted Items: RECOVER-FD Command

Recovers an item after it has been deleted by the FD command in the Editor.

Command Class

TCL-I command.

Syntax

RECOVER-FD file-specifier

Syntax Elements

file-specifier specifies the name of the file that contains the deleted item.

Prompt

Item Id:

RECOVER-FD prompts you for the item-id of the item that was just deleted. If the item-id matches the last one used by the Editor, the item is restored. The message 'item-id' filed in file 'file-name'  is displayed and control returns to TCL.

If the item-id you type does not match the last one used by the Editor, you are again prompted for an item-id. RETURN or LINE FEED entered as a response to the Item Id:  prompt returns the process to TCL without recovering the item.

Limitations of Recovery

RECOVER-FD must be issued immediately after you execute an FD command or the item is lost permanently. Deleted frames are returned to overflow space.

RECOVER-FD never works if the ED{IT} command was called from a DataBasic program or from a Proc.

RECOVER-FD works only if the deleted frame has not been claimed from overflow by another process and, if a list was edited, it was the last item in the list.

Example

:ED MD XYZ
New item
Top
.I
001 THIS IS A SAMPLE RECOVERY
002
Top
.FD
-FD? Sure (Y/N)?Y
'XYZ' deleted from file 'DICT MD'.
:RECOVER-FD MD
Item Id:XYZ
'XYZ' filed in file 'DICT MD'.

RealityV15.1 (MoTW) Revision 7Comment on this topic