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.
G or * 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. If string' 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 of VM/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.
change In 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.
change IISO 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 for string'. 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 extend bevond 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
EDIT Subcommands-CHANGE R. When the IMAGE subcommand is set with the CANON operand, backspace
characters at the beginning or end of stringl are ignored. 9 To a CHANGE subcommand with no operands from a fixed-length you should use the &STACK control statement. When is on, every line that is changed is displayed.
If you issue the CHANGE subcommand without operands at a 3270 display
terminal in display mode, the following occurs:
1. The record pointed to by the current line pointer appears in the user input area of the display. If the line is longer than the
current truncation setting, it is truncated.
2. Yoa can then alter the record in the user input area by retyping
part all of the line, or by using the Insert, Delete, or Erase EOF keys to insert or delete characters.
3. When the line is modified, press the Enter key, which causes the in the user input area to replace the old record at the
current line in the output display area.
If you bring a line down
change it, press the Erase
line is not changed.
to the user input area and decide not to
Input key and then the Enter key, and the When a line is moved to th@ user input area, any characters currently assignej to VM/370 logical line editing symbols (#, ¢,") are
re-interpreted when the line is reentered. Any data that is not retyped
at the input area is reentered without change if it consists of standard
characters only. Other nonprintable characters (including tabs, control characters, etc., and lower-case letters, are either
converted to blanks or translated by zone substitution into upper-case
letters, numbers, or other printable characters. You should issue a
CHANGE subcommand with explicit operands to change lines containing
line-editing symbols, lower-case letters, or nonprintable data.
The CHANGE subcommand is treated as
issued without operands at a typewriter
terminal that is not in display mode.
an invalid subcommand if it is
terminal or at a 3270 display When you request a global change on a 3270 terminal, the display is
changed only once, to reflect the final position of the current line
pointer. The editor displays, in the message area of the display
screen: LINE(S) CHANGED
to indicate the
request resulted
displayed as:
number
in the
of lines that were
truncation of any
updated.
lines,
nnnn LINE(S) CHANGED nnnn LINE{S) TRUNCATED If the change
the message is
If the change request moves the current line pointer beyond the end
of the file, the word EOF: is displayed on the current line preceded by
the last records of the file. The rest of the output area is blank. Section 3. EDIT Subcommands and 223
Previous Page Next Page