Edit Macros-$DUP EDIT Macros
Edit macros 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. If vou 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 and the 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 zeros or 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 the STACK 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 Macros-$MOVE Use the $MOVE edit macro to move one or more lines from one place in a
file to another place. The format of the $MOVE macro is: .- , I $MOVF n {UP m } I I L
n DOWN m TO label
indicates the number of records you want to move, beginning
with the current line. The maximum number of lines you can
move is 25. UP m indicates that you want to move the lines toward the top of
the file, m lines above the current line. DOWN m TO label
indicates that you want to move the lines toward the end of
the file, m lines below the last line you are going to move.
indicates that you want the lines inserted
specified label. The label must be one to
characters and must start in column 1.
following the
eight uppercase
1. The last line moved becomes the new current line.
2. If the label is not found or if the DOWN value exceeds the number
of lines remaining before end of file, the lines are inserted at
the end of the file. If the UP value exceeds the number of lines
remaining before top of file, the lines are inserted at the top of
the file.
3. If you use the logical line end symbol (#) to stack additional
subcommands on the same line with the $MJVE request, those
subcommands are cleared from the console stack and the message: STACKED LINES CLEARED BY $MOVE is displayed. The stacked subcommands are not executed.
4. Because it uses console functions, $MOVE will truncate duplicated
records containing binary zeros or nonprintable characters.
5. Because it uses the STACK EDIT subcommand, $MOVE can move a maximum
of 130 characters in one line. Longer lines are truncated. When verification is on, the last line moved is displayed.
Section 3. EDIT Subcommands and Macros 261
Previous Page Next Page