1 EDIT Subcommands-INPUT, When you insert lines while using display mode, the editor writes each
The old current line and all records
except for the topmost record formerly
from the screen.
a local display terminal in
record on the current line.
above move up one line,
on line 2, which is deleted
2. If vou are using a remote display terminal in display mode and you
issue the INPUT subcommand with no text, the terminal is forced
into line mode. The display of the file on the screen disappears
and the word INPUT: appears. !s you enter input lines, they appear
in the output display area. When you leave input mode by entering
a null line, the remote terminal returns to display mode. The
display of the file reappears on the screen, with the lines you have ;ust entered in their proper place in the file.
3. When vou are entering data in input mode at a display terminal that
is in line mode, a tab character generated by a program function
(PF) key only generates one character, and appears as one character
on the screen. That is, the line does not appear according
to the tab settings.
liNEMODE Use the LINEMODE subcommand to set, cancel, or display the status of
line-number editing. When you use line-number editing, you can input,
locate, and replace lines by referencing their record numbers.
Line-number editing is the default for VSB!SIC and FREEFJRT files. The
format of the LINEMODE subcommand is: r -, , , r , I I LINEmode I ,LEFT , , , I I L- LEF'! L
1 I RIGHT I I I , OFF , 1 I L .I , initializes line-number editing and places sequence numbers the left, in columns 1 through 5, right-justified and padded with blanks; the near zone is set to 7. If the filetype is FREEFORT, columns 1 through 8 are used for serial numbers; the
near zone is set to 9.
You should never use left-handed line-number editing for files in data must occupy columns 1 through 6, for example ASSEMBLE files. RIGHT initializes line-number editing and places sequence numbers
R on the right, in columns 76 to 80, right-justified and padded
with zeroes. The end zone and truncation columns are set to 12. operand is valid only RO-character records.
for files with fixed-length
Section 3. EDIT Subcommands and Macros 235
EDIT OFF cancels line-number editing and (if you were using left-handed
line-number editing) resets the first logical tab setting to
column 1. The VERIFY, TRUNC, and ZONE subcommand settings remain
unchanged. Serialization may still be in effect. OFF is the
default for all filetypes except VSBASIC and FREEFORT. 1 If you enter LINEMODE OFF while editing a FREEPORT file,
line-number editing cannot be resumed for the remainder of the
edit session. When you enter input mode while yOJ are prompted with a line
default prompting increment is PROMPT subcommand.
you are using line-number editing,
number to enter each line. The 10; you may change it using the
If you enter input mode after using the nnnnn subcommand to
position the current line pointer, the prompted line number is the neKt higher multiple of the current prompting increment or an
ad;usted line number, whichever is smaller. The adjusted line
number is determined according to the following formula:
pppp = 1 + cccc + _lliill..!L=-£Q£c ( Any fractional remainder is
4 dropped. )
where:
pppp is the prompt line number.
cccc is the current line number.
nnnn is the next sequential line number in the file.
2. When you are prompted on a typewriter terminal, enter your input
line on the same line as the prompted line number. If you are
using right-handed line-number editing, on a typewriter terminal or
on a display terminal in line mode, the serial are not
redisplayed in columns 76 to 80 (unless you use the VERIFY subcommand to increase the verification setting). When a line is
displayed in edit mode, the line numbers always appear on the left
even though they are on the right in the disk copy of the file.
Whether or not the line numbers are displayed on the right depends
on the current verification setting.
3. You cannot use the INPUT or REPLACE subcommands to input a single data line when you are using line-number editinq; use the nnnnn
subcommand instead.
4. When you initialize line-number editing for files that already
exist, the editor assumes that the records are in the proper format
and numbered in ascending order.
5. If you want to place serial numbers in columns 16 you do not wish to use line-number editinq, subcommand.
through 80, but
use the SERIAL When you issue the subcommand with no operands, the current
setting is displayed.
236 VM/37Q CMS Command and Reference
Previous Page Next Page