I - Insert
Causes the Editor to enter the input environment.
Syntax
I
or
I{ data}
Two Input Modes
The I command has two different modes: Insert and Input.
Insert Mode
When you use the I mode, you are prompted by a line number.
All subsequent lines you type are then considered as data input to the item.
You cannot type more than 240 characters on one line without typing a line continuation character. The line continuation character is a segment mark (X'FF'), entered by typing CTRL+_.
If the I command is issued for a new item, the new lines are inserted starting at line one. The Editor defines data lines by prompting with a line number to which data are to be entered. Line numbers for new items are issued consecutively, beginning with 001.
Input is prompted with the line number followed by a plus sign indicating lines are being added after the line number indicated. The exception to this is when a line is inserted before the first line of the item. The prompt in this case is 001-.
A null input (ENTER, LINE FEED or RETURN in column one) terminates Editor prompts, and exits the input environment, waiting for the next Editor command.
When you exit the input environment for the first time for a new item, the Editor executes an automatic F (Flip) command, toggling the Editor buffers and allowing the newly entered lines to be listed.
Input Mode
To use Input mode, you include the data you want to input on the same line as the I command. You are limited to inserting one line of up to 240 characters. Line continuation is not allowed with this form of the command.
Creating Empty Lines (Null Attributes)
If a null line is required in the item, you must create the line with a fill character and then replace that fill character with a null character by means of the R (Replace) command.
Inserting Data into an Existing Item
If the I command is issued for an item already containing data, new lines are inserted following the current line. If the line pointer is at the top of the item, input lines are inserted before the first line of the item.
Example 1
|
Edit
a new item. |
Example 2
|
Create an item in input mode. |
|
|
|
Note that each caret mark
is the echo of pressing |
Example 3
|
|