where "right" indicates that the sequence numbers are on the right, in
columns 76-80, and "left" indicates you want sequence numbers on the
left in columns 1-5. LINEMODE LEFT is the default for BASIC, VSBASIC, and FREEFORT files. You do not have to specify it. You must specify LINEMODE for files with other filetypes.
If you specify LINEMODE RIGHT to use line-number editing on a
typewriter terminal, the line numbers are displayed on the left, as a
convenience, while you edit the file. When you are using line-number editing in input mode, you are
prompted to enter lines; the line numbers are in increments of 10. For
example, when you are creating a new file, you are prompted for the
first line number as follows: 10 On a typewriter terminal, you enter your input line following the 10. When you press the carriage return, you are prompted again: 20 and you continue entering lines in this manner until you enter a null
line.
You can change the prompting increment to a larger or smaller number
with the PROMPT subcommand:
prompt 100 When you are in edit mode you can locate a line by giving its line
number: 700 This is the nnnnn subcommand. In line-number editing, you use it instead
of the INPUT subcommand to insert a single line of text. For example: 905 x = a * b
inserts the text line "X = A * B" in the proper sequence in the file.
If you use "nnnnn text" specifying the number of a line that already
exists, that line is replaced; the current line pointer is moved to
point to it.
The EDIT subcommands that you normally use for context editing, such
as CHANGE, ALTER, LOCATE, UP, DOWN, and so forth, can also be used when
you are line-number editing; their operation does not change. RENUMBERING LINES When you are using line-number editing, the editor uses the prompting
increment set by the PROMPT subcommand. However, when you begin adding
lines of data between existing lines, the editor uses an algorithm to
select a line number between the current line number and the next line
number. If a prompting number cannot be generated because the current
line number and the next line number differ only by one, the editor
displays the message: RENUMBER LINES and you must resequence the line numbers in the file before you can
continue line-number editing.
82 IBM VM/370 eMS User's Guide
You can resequence the line numbers in one of three ways:
1. If you are a VSBASIC or FREEFORT user, you may use the RENUM subcommand:
renum
This subcommand resolves
renumbered.
all references to lines that are
2. If you are using right-handed line-number editing, you must:
a. Turn off line-number editing:
line mode off
b. If you want to change the three-character identifier or specify
eight-character sequence numbers, issue the SERIAL subcommand,
for example:
serial all
If you want to use the default serialization setting, you do not
need to issue the SERIAL subcommand.
c. Issue the SAVE subcommand:
save
d. Reissue the
editing:
LINE MODE subcommand and continue line-number
linemode right
3. If you are using left-handed editing for a filetype
other than VSBlSIC or FREEFORT, you must manually change individual
line numbers using EDIT subcommands. In order to modify the line
numbers, you must change the zone setting and the tab setting:
zone 1 * tabset 1 6
so that you can place data in columns 1 through 6. When you are using right-handed line-number editing, and a FILE, SAVE, or automatic save request is issued, the editor does not
resequence the serial numbers, but displays the message: RESERIALIZATION SUPPRESSED so that the lines numbers that are currently saved on disk match the
line numbers in the file. You must cancel line-number editing (using the LINEMODE OFF subcommand) before you can issue a FILE or SAVE subcommand
if you want to update the sequence numbers.
Section 5. The CMS Editor 83
Previous Page Next Page