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
262 VM/370 eMS Command and Macro Reference
Previous Page Next Page