EDIT—CHANGE subcommand operands
- line_number_1
- specifies the number of a line you want to change. When used with line_number_2, it specifies the first line of a range of lines.
- line_number_2
- specifies the last line of a range of lines that you want to change. The specified lines are scanned for first occurrence of the sequence of characters specified for string_1.
- *
- specifies the line pointed to by the line pointer in the system to be used. If you do not specify a line number or an asterisk (*), the current line is the default.
- count_1
- specifies the number of lines that you want to change, starting at the position indicated by the asterisk (*).
- string_1
- specifies a sequence of characters that you want to change.
The sequence must be (1) enclosed within single quotation marks, or
(2) preceded by an extra character which serves as a special delimiter.
The extra character may be any printable character other than a single
quotation mark (apostrophe), number, blank, tab, comma, semicolon,
parenthesis, or asterisk. The hyphen (-) and plus (+) signs can be
used, but should be avoided because of possible confusion with their
use in continuation. If the first character in the character string
is an asterisk (*), do not use a slash (/) as the extra character.
(TSO/E interprets the /* as the beginning of a comment.)
The extra character must not appear in the character string. Do
not put a standard delimiter between the extra character and the string
of characters unless you intend the delimiter to be treated as a character
in the character string.
If string_1 is specified and string_2 is not, the specified characters are displayed at your terminal up to (but not including) the sequence of characters that you specified for string_1. You can then complete the line.
Note: If you are changing a string to a string of larger size, EDIT inserts the larger string and attempts to preserve the rest of the line, including spaces. - string_2
- specifies a sequence of characters that you want to use as a
replacement for string_1. Like string_1, string_2 must
be (1) enclosed within single quotation marks, or (2) preceded by
a special delimiter. This delimiter must be the same as the extra
character used for string_1. Optionally, this delimiter
can also immediately follow string_2. Note: If you are changing a string to a string of larger size, EDIT inserts the larger string and attempts to preserve the rest of the line, including spaces.
- ALL
- specifies every occurrence of string_1 within the
specified line or range of lines are replaced by string_2.
If this operand is omitted, only the first occurrence of string_1 is
replaced with string_2.
If you cause an attention interruption during the CHANGE subcommand when using the ALL operand, your data set might be partially changed. It is good practice to list the affected area of your data set before continuing.
If the special delimiter form is used, string_2 must be followed by the delimiter before typing the ALL operand.
- count_2
- specifies a number of characters to be displayed at your terminal, starting at the beginning of each specified line.