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 userinput 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.
LOCATEUse 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
theLOCATE 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 delimitermay 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 isnull or blank, the search is successful on the r1rst line encountered. If the line pointer is at the ena of the file
when theLOCATE 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 messageERROR. 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 topof the file. Section 3. EDIT Subcommands and Kacros 237
screen, in the editor message area. Enter your input lines in the user
position in the file.
LOCATE
for the first occurrence of a specified character string. The format of
the
signifies any unique delimiting character that does not
appear in the string. The delimiter
character. The closing delimiter is optional.
specifies any group of characters to be searched for in
the file.
1. If the beginning delimiter is /,
2. If string is
when the
3.
specific column. If you specify a character string longer than the
current zone width, the editor issues the message
displayed. If the string is not found, the messages:
command be repeated, beginning at the top