EDIT Subcommands-X, Y X or Y Use the X or Y subcommands to assign a given EDIT subcommand to be
executed wheneverX or Y is entered, or to execute the previously
assigned subcommand a specified number of times. The format of theX and Y subcommands is:
subcommand indicates any EDIT subcommand line. The editor assumes that
you have specified a valid EDITsubco.mand, and no error
checking is done.
n indicates the number of times the previously assigned
subcommand is to be executed. IfX or Y is entered with no
operands, 1 is assumed.
1. Advancement of the current line pointer depends upon the EDIT
subcommand that has been assigned toX or Y. If a number or a
subcommand is not specified, the previously assigned subcommand is
executed once.
2.X and Yare initially set to null strings. If you enter X or Y without having previously assigned a subcommanj to it, the editor
issues the ?EDIT error message.
3.You can use the X and Y subcommands in many instances where you
must repeat a subcommand line many times while editing a file, but
the situation does not lend itself to a global request. For
example, if you assignX to a LOCATE and Y to a CHANGE subcommand,
issue:
x
to execute the LOCATE request, and after examining the line, you
can change it and continue searching, by entering theY subcommand
followedby the X subcommand: y#x or just continue searching:
x
Responses are issued for the EDIT subcommands that are assigned toX and Y, in a=cordance with the current verification setting.
256VM/170 CMS Command and Macro Reference
executed whenever
assigned subcommand a specified number of times. The format of the
subcommand indicates any EDIT subcommand line. The editor assumes that
you have specified a valid EDIT
checking is done.
n indicates the number of times the previously assigned
subcommand is to be executed. If
operands, 1 is assumed.
1. Advancement of the current line pointer depends upon the EDIT
subcommand that has been assigned to
subcommand is not specified, the previously assigned subcommand is
executed once.
2.
issues the ?EDIT error message.
3.
must repeat a subcommand line many times while editing a file, but
the situation does not lend itself to a global request. For
example, if you assign
issue:
x
to execute the LOCATE request, and after examining the line, you
can change it and continue searching, by entering the
followed
x
Responses are issued for the EDIT subcommands that are assigned to
256