EDIT n or * indicates the number of lines to be searched, starting at
the current line. If * is entered, the search is performed
until the end of the file is reached. If this option is
omitted, then only one line is searched.
Gor * requests the editor to change every occurrence of stringl
in the lines specified. If G or * is not specified, only
the first occurrence of stringl in each line specified is
changed. Ifstring' is null, G or * may not be specified.
1. The first nonblank character following the any of its is considered the delimiter. c.VM/370.CMS.* subcommand (or
For example:
changes the first occurrence ofVM/310 to eMS on every line from
the current line to the end of the file.
2. If string2 is omitted, it is assumed to be a null string. For
example:THIS ISN THE LINE.
changeIn THIS IS THE LINE. null string causes a character deletion. If stringl is null,
characters are inserted at the beginning of the line. For example:THIS IS THE LINE.
changeIISO I SJ THIS IS THE LINE.
3. To change multiple occurrences of the same string on one line,
enter:
change/stringl/string2/1 *
4. The subcommand can be used on typewriter terminals to
display, without changing, any lines that contain the information
specified in stringl. Enter:
change /stringl/stringl1 * *
5.Use the ZONE subcommand to indicate which columns are to be
searched forstring'. If string' is wider than the current zone,
you receive the message:ZONE ERROR and you should either reenter the CHANGE subcommand or change the
zone setting.
6. If the character string inserted causes the data line to extendbevond the truncation column or the zone column, any excess
characters are truncated.(See the description of the TRUNC subcommand for additional information on truncation.)
7.You should use the ALTER
single character to some
available on your keyboard).
subcommand when you want
special character (one
222 VM/37Q CMS Command and Macro Reference
to change a
that is not
the current line. If * is entered, the search is performed
until the end of the file is reached. If this option is
omitted, then only one line is searched.
G
in the lines specified. If G or * is not specified, only
the first occurrence of stringl in each line specified is
changed. If
1. The first nonblank character following the
For example:
changes the first occurrence of
the current line to the end of the file.
2. If string2 is omitted, it is assumed to be a null string. For
example:
change
characters are inserted at the beginning of the line. For example:
change
3. To change multiple occurrences of the same string on one line,
enter:
change/stringl/string2/
4. The
display, without changing, any lines that contain the information
specified in stringl. Enter:
change /stringl/stringl1 * *
5.
searched for
you receive the message:
zone setting.
6. If the character string inserted causes the data line to extend
characters are truncated.
7.
single character to some
available on your keyboard).
subcommand when you want
special character (one
222
to change a
that is not