EDIT Subcommands-X, Y X or Y Use the X or Y subcommands to assign a given EDIT subcommand to be
executed whenever X or Y is entered, or to execute the previously
assigned subcommand a specified number of times. The format of the X and Y subcommands is:
subcommand indicates any EDIT subcommand line. The editor assumes that
you have specified a valid EDIT subco.mand, and no error
checking is done.
n indicates the number of times the previously assigned
subcommand is to be executed. If X 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 to X 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 assign X 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 the Y subcommand
followed by the X subcommand: y#x or just continue searching:
x
Responses are issued for the EDIT subcommands that are assigned to X and Y, in a=cordance with the current verification setting.
256 VM/170 CMS Command and Macro Reference
EDIT Subcommands-ZONE ZONE Use the rONE subcommand to specify the columns of each record (starting
position and ending position) to be scanned when the editor searches for
a character string or to display the current ZONE settings. The format
of the ZONE subcommand is:
r--- I I Zone I r r " I I firstcol Ilastcolll I I I * I * II ! I I 1 I " I ILL .J.J L
firstcol indicates the near zone column of each record to be scanned.
If firstcol is specified as an asterisk (*), the default is
column 1.
lastcol indicates the end zone column of each record to be scanned.
If lastcol is specified as an asterisk (*), the default is the
record length.
1. The editor assigns the following settings by default: ASSEMBLE, MACRO, UPDATE, UPDTxxxx AMSERV, PLI, PLIOPT COBOL, DIRECT, FORTRAN BASIC, VSBASIC PF.EFFORT Others 1
2
1
7
9
1 71
72
72
Record Length
Record Length
Record Length
2. The ZONE settings are used by the ALTER, CHANGE, and LOCATE subcommands to define the columns that will be scanned. If you
specify a character string longer than the zone, you receive the
message:
and the subcommand is not executed.
3. If vou issue a CHANGE subcommand that increases the length of a
line beyond the end zone setting, the line is truncated. Section 3. EDIT Subcommands and Macros 257
1 I I , , I
Previous Page Next Page