Edit Line Number [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Edit Line Number
Purpose
Enables you to renumber a line of text.
Default Syntax
CTRL e
Description
This command enables you to change the line number of the current line of
text. You can change line numbers only if the current file is numbered
and the Display Line Numbers option is yes. The default for this option
is yes for COBOL-numbered files and no for standard-numbered files.
Refer to "Line Numbering" in chapter 2 for complete information on this
subject.
Command Process
When you execute the command, HP EDIT deletes the current line number and
moves the cursor to the first column of the line. You then type the new
desired line number.
Requirements
To preserve the ascending line order, you must specify a number greater
than the preceding line number, but less than the following line number.
If you do not, HP EDIT rejects your entry by retaining the original line
number and displaying Line number out of sequence on the message line.
The new number must be between 0.001 and 99999.998 for standard-numbered
files, and between 0.001 and 999.998 for COBOL files.
Limitations
The edited entry cannot exceed three digits beyond the decimal point. If
you attempt to enter four digits following the decimal point, HP EDIT
displays Value entered not in line number format on the message line.
This message also appears if you enter eight or more total digits (six
for COBOL files).
Procedure
To edit a line number:
1. Move the cursor to the line number you want to change.
2. Press and hold CTRL, then press the e key. HP EDIT erases the
current line number and moves the cursor to the first column of
the line.
3. Type the desired line number and press Return. HP EDIT responds
to a valid entry by replacing the old line number with the new
line number.
Examples
To edit the second line number of the following standard-numbered file:
14 Move the cursor to the following line
15 to edit this line number
16 between lines 14 and 16.
1. Move the cursor anywhere on the second line as shown.
2. Press and hold CTRL, then press the e key. HP EDIT erases the
current line number and moves the cursor to the first column of
the line as shown:
14 Move the cursor to the following line
to edit this line number
16 between lines 14 and 16.
3. Type 15.1 and press Return. HP EDIT replaces the old line number
with the new one and moves the cursor to the first text column as
shown:
14.1 Move the cursor to the following line
15.1 to edit this line number
16 between lines 14 and 16.
Related Commands
Renumber Lines
MPE/iX 5.0 Documentation