The mvBase system provides two editors that can be used to create and modify items in a file. An editor performs the bulk of file management tasks on the mvBase system from editing items in the Master Dictionary or the file dictionary to creating items in the data file. You can create, copy, merge, modify or delete one or more items in a file using an Editor.
The EDIT (or ED) command invokes the line-oriented Editor. The DOC-EDIT (or DE) command invokes the screen-oriented Editor.
Format
ED | DE [DICT] [dict-name,] filename [item-list] [(options)] |
Parameter(s)
filename |
Name of the file that contains the items specified in the item-list. |
options |
They are specific to the Editor. |
If the item list is not specified, you will be prompted to specify an item-ID. For a complete list of parenthetical options, see Using the Terminal Control Language.
The following example uses the Editor to create a new item in the ORDERS file. The Editor prompts for the item-ID:
>ED ORDERS ITEM ID: 10135 NEW ITEM TOP |
The new item-ID is 10135. When the Editor is invoked, the line pointer is positioned at the top of the item. The Editor prompt is a period (.). Only Editor commands can be entered at this prompt.
When you use the full screen Editor, the I (insert) command is used to enter the insert mode and type new text. Pressing ESC exits insert mode, and typing FI in command mode saves the new item in the file and quits the Editor. The FD command can be used to delete the item that you are editing.
See the Editor Reference Guide for more information on using the Editor.
See Also