Edit Macros-$DUP EDIT Macros
Editmacros are CMS EXEC files that execute sequences of EDIT
subcommands. following edit macros are supplied with VM/310 for vour convenience. For additional information on creating and invoking your own edit macros and EXEC files, see the Use the $DUP to duplicate the current line. The format of the $DUP macro is: r , , , r , I t $DlJP I In I , , I 11 I , I I L J , L- -lI n indicates the number of times you want to duplicate the line; the value vou can specify is 25. If n is omitted, the current
line is duplicated once.
1. last copy of the line duplicated becomes the new current line.
2. Ifvou use the logical line end symbol (I) to stack additional
subcommands on the same line with the$DUP edit macro those
subcommands are cleared from the console stack andthe message: S!ACKED LINES CLEARED BY SDUP is issued. The stacked subcommand(st are not executed.
3• Because it
duplicating
characters.
uses console functions,$DUP cannot
records containing binary zerosor Truncated duplicate records will result.
be used when
nonprintable
4.When using line-number editing, you can insert duplicate lines
between existing numbered lines if the interval between line
numbers is large enough. Execution of$DUP stops after the last
valid line number has been assigned.You can renumber your file to
increase the interval between line numbers.
5. Because it uses theSTACK EDIT subcommand, $DUP can duplicate a of 130 characters in one line. Longer lines are truncated. last line duplicated (the new current line) is displayed. 260 eMS Command and Macro Reference
Edit
subcommands.
line is duplicated once.
1.
2. If
subcommands on the same line with the
subcommands are cleared from the console stack and
3
duplicating
characters.
uses console functions,
records containing binary zeros
be used when
nonprintable
4.
between existing numbered lines if the interval between line
numbers is large enough. Execution of
valid line number has been assigned.
increase the interval between line numbers.
5. Because it uses the