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
EDIT Subcommands-LINEMODE, LOCATE When use line-number editing on a display terminal in display mode, the promptinq numbers in input mode appear on line 2 of the display
screen, in the editor message area. Enter your input lines in the user input area. Regardless of whether you are using right- or left-handed line-nuBber editing, the line numbers always appear in their true
position in the file.
LOCATE Use the LOC!TE subcommand to scan the-file beginning with the next line
for the first occurrence of a specified character string. The format of
the LOCATE subcommand is: r ,r Locate] L-- I I[ string[ I] J I II / (diag:>nal) strinq
signifies any unique delimiting character that does not
appear in the string. The delimiter may be any nonblank
character. The closing delimiter is optional.
specifies any group of characters to be searched for in
the file.
1. If the beginning delimiter is /, you can omit the subcommand name LOCATE. If you enter only: I on a line, the current line pointer is moved down one line.
2. If string is null or blank, the search is successful on the r1rst line encountered. If the line pointer is at the ena of the file
when the LOCATE subcommand is issued, scanning starts from the top of the file.
3. Use the ZONE subcommand w.hen you want the editor to search only a
specific column. If you specify a character string longer than the
current zone width, the editor issues the message ERROR. When verification is on, the line containing the specified string is
displayed. If the string is not found, the messages: NOT FOUND EOF: are displayed, and you may use the REUSE (=) subcommand to request that
command be repeated, beginning at the top of the file. Section 3. EDIT Subcommands and Kacros 237
Previous Page Next Page