There are several special labels that the editor automatically assigns and maintains. They all begin with the letter Z. Labels beginning with the letter Z are reserved for editor use. You cannot assign them.
Unlike other labels, these system labels do not necessarily stay with the same line, but instead represent logical positions on the display.
The editor-assigned labels that you can use are:
The data line where the cursor is currently positioned.
The first data line (relative line number 1). This can be abbreviated .ZF.
The last data line. This can be abbreviated .ZL.
You can limit the range of lines certain edit commands process by entering a pair of labels indicating the first and last lines to process, then naming those labels in the range operand of the command. The specified command then processes whatever data is contained in the designated (inclusive) range.
For example, the following command finds the first xxx in the range of lines from the label .HERE to the end of the data.
COMMAND ===> find xxx .here .zl
The following command deletes all excluded lines in the range of lines from label .HERE to label .THERE (inclusive).
COMMAND ===> del all x .here .there
The range operand consists of two labels separated by a blank or comma. A single label is invalid. The labels can be any combination of system labels (.ZFIRST, .ZCSR, .ZLAST) or user labels.
The label representing the smaller relative line number is used as the start of the range and the label representing the larger relative line number is used as the end of the range, regardless of the order you specified.
The range operand applies to the primary edit commands FIND, LOCATE, CREATE, CHANGE, DELETE, REPLACE, EXCLUDE, SORT, RESET, and SUBMIT.
|
Copyright © 2003 CA.
All rights reserved.
|
|