Entering the Screen Editor: SEDIT Command

Invokes the Screen Editor.

Command class

TCL-II command.

Syntax

SE{DIT} file-specifier item-list {(options}

Syntax elements

file-specifier Specifies the file containing the item or item list. See Conventions for optional parts of this parameter.

item-list One or more item-ids separated by blanks, or an asterisk character (*) that specifies all items in the indicated file.

item-list can also be supplied by a previous SELECT, SSELECT, GET-LIST, FORM-LIST or similar command, in which case item-list is omitted from the command specification.

Options

B Displays an item in read-only mode. Also called Browse mode. This option neither observes, nor sets item locks.

H Highlight. Turns on the Highlight function. This option acts just like the Highlight Screen Editor command (+).

U Selects case-sensitive text searching.

V View ON. Turns on the View function. This option is the same as entering the Screen Editor and then invoking the View command (V).

Y Selects case-insensitive text searching.

Operation

Display

When you enter the Screen Editor, the first 23 lines of the item are displayed.

Case Sensitivity

If neither U nor Y is specified, the current data case setting (set with the DATA.CC environment option or the CASE TCL command) is used. See the L (Locate Character) and S (Search and Replace) commands for more details.

If both U and Y are specified an error message is displayed and you are returned to TCL.

Status/Command Line

The 24th line of the screen is the Status/Command Line. This line displays the case sensitivity setting (CS or CI), the mode of operation and the file-name and item-id. For example:

CS Edit mode (?=Help) BP TEST1

The Status/Command Line also prompts for parameter input after you issue certain Screen Editor commands.

Using an Item List

If an item list is indicated, the first item specified is edited first. Then, when the Screen Editor session is terminated by typing F followed by the I or R option, or typing X followed by the Y option, the Screen Editor automatically displays the next item in the list, and so on.

If you specify multiple item-ids, the item-id of the item currently being edited is displayed.

Note that, if you are editing multiple items, the current case setting is retained when you open a new item.