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
EDIT Subcommands-LONG, NEtT LONG Use the LONG subcommand to cancel a previous SHORT subcommand request.
The format of the LONG subcommand is:
r I LONG , L- When the LONG subcommand is in effect (it is the default), the editor
responds to invalid subcommands with the message: ? EDIT: line ••• None.
NEXT Use the NEXT subcommand to advance the line pointer a specified number
of lines toward the end of the file. The line pointed to becomes the
new current line. The format of the NEXT subcommand is:
r------ , 1 r , , 1 Next 1 nl , 1 111 I 1 L .J
1 L- -.J n indicates the number of lines to move the line pointer. If n is
omitted, then the pointer is moved down only one line. NEXT is equivalent to DOWN and FORWARD. When verification is on, the new current line is displayed. If the end
of the file is reached, the message: EOF: is displayed.
238 VM/370 eMS Command and Macro Reference
Previous Page Next Page