EDIT Subcommands-ALTER
ALTER Use the ALTER subcommand to change a specific character to another
character, one that may not be available on your terminal keyboard. The
ALTER sabcommand allows you to reference characters by their hexadecimal
values. The format of the ALTER subcommand is: r- -, , r
r " , , ALter charl char2 In I G" , I 1* '* I' I 1 11 I II I I L L .J.J , L- -l char 1 specifies the character to be
either as a single character or (00 through FF).
altered. It may be specified
as a pair of hexadecimal digits
char2 specifies the character to which charl is to be altered. It may
be specified either as a single character or as a pair of
hexadecimal digits.
indicates the number of lines to be searched for the specified
character. If you specify an asterisk (*), all lines in the
file, beginning with the current line, are searched. If this
option is omitted, then only the current line is searched.
requests the editor to alter every occurrence of charl in the
lines specified. If G or * is not specified, only the first
occurrence of charl in each line specified is altered.
1. If char2 is a hexadecimal value that cannot be represented on your
terminal, it may appear as a blank, for example:
input XSLC alter X 02 SLC Column 1 contains an X'02', which cannot be displayed.
2. Use the ZONE subcommand if you want only particular columns
searched for a specific character.
When verification is on, altered lines are displayed at your terminal.
When yoa request a global change on a 3270, the display is changed only
once, to reflect the final position of the current line pointer. The
editor displays a message to indicate the number of lines changed: LINE (S) CHANGED
218 VM/370 Command and Macro Reference
EDIT Subcommands-AUTOSAVE AUTOSAVE Use the AUTOSAVE subcommand to set, reset, or display the automatic save
function of the editor. When the automatic save function is in effect,
the editor automatically issues SAvE subcommand each time the
specified number of changes or insertions are made. The format of the AUTOSAVE subcommand is:
r --------, I r , I AUrOsave I In, IOFFI I I I L J L------ n is a decimal number between 1 and 32767, indicating the frequency
of the automatic save function. One SAVE subcommand is issued for
every n lines that are changed, deleted, or added to the file. OFF off the automatic save function. setting. This is the initial
1. Each line affected by the $MOVE macro is treated as one update. However, all changes caused by a single CHANGE, DELETE, DSTRING,
GErFILE, or OVERLAY subcommand are treated as a single update, no
matter how many lines are affected.
2. If you are editing a file on a read-only disk, and an automatic
save request occurs, the message:
SET NEW FILEMODE AND RETRY is issued. You can enter CMS subset and access the disk in mode, or use the FMODE subcommand to change the filemode
to the mode of a read/write disk. If you were in input mode, you
are placed in edit mode@ 3. The message "SAVED" is displayed at the terminal each time the save
operation occurs.
If you issue the AUTOSAVE subcommand with no operands, the editor
displays the current setting of the automatic save function.
Section 3. EDIT Subcommands and Macros 219
Previous Page Next Page