EDIT Subcommands
Section 3. EDIT Subcommands and Macros
This section describes the formats and operands of the EDIT subcommands
and macros. EDIT subcommands are valid only in the environment of the CMS editor, which is invoked with the EDIT command. The EDIT command
format is described in "Section 2. CMS Commands." The has two modes of operation: edit and input mode. Whenever the EDIT command is issued, edit mode is entered; when the INPUT or REPLACE subcommands are issued with no input mode is
entered. In input mode, all lines you enter are written into the file
you are editing. To return to edit mode from input mode, you must enter
a null line (one that has no data on it).
For a functional description of the CMS editor and tutorial
information on how to use it, consult the For a summary of the default settings assumed by the editor for eMS reserved filetypes, see "Appendix A: Reserved Filetype Defaults." EDIT Subcommands
The EDIT subcommands are listed in alphabetical order for easy referen=e. Each subcommand description includes the format, a list of
operands (if any), usage notes, and responses. For those subcommands
that operate somewhat differently on a 3270 display terminal than on a typewriter terminal
Considerations, " is added.
additional a. i sellS sian, "Display Mode Subcommands that are valid only with 3270 display terminals, namely SCROLL, SCROLLUP, and FORMAT have the notation "(3270 only)" next to the
subcommand names. The FORWARD and BACKWARD subcommands, which were
designed for use with 3270 terminals but can be issued at any terminal,
have the notation "(primarily 3270} " next to the sub=ommand names.
Section 3. EDIT Subcommands and Macros 217
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
Previous Page Next Page