To move a line or a block of lines to another place in the work file, use any of the following line commands:
|
Use: |
To: |
|---|---|
|
%M(space) |
Move the indicated line to the destination marked by the %A (after) or %B (before) command |
|
%Mn(space) |
Move the specified number of lines to the destination marked by the %A (after) or %B (before) command. For example, %M5 moves the line on which the command is located and the four lines immediately following it. |
|
%MB(space). . .%ME(space) |
Move a block of lines to the destination marked by the %A (after) or %B (before) command. The two lines marked with %MB and %ME and all intervening lines are moved. Note: You can enter %MB...%ME so that it spans more than one page of the work file. For an example of moving lines, see Entering Block Commands. |
|
%A(space) or %B(space) |
|
Scenario—Moving Lines
The following scenario illustrates moving a block of text using line commands. Note that you type the line commands over existing characters, and that you type a space at the end of each command.
The following sample screen shows the original work file as it appears on the online compiler screen.
IDD nn.n ONLINE PAGE 1 LINE 1 1/3 ADD RECORD IS KBR-DC-REC VERSION IS 3 PREPARED BY KBR. RECORD ELEMENT IS ADDRESS-0415-KBR USAGE IS DISPLAY. RECORD ELEMENT IS EMP-ID-0415-KBR PICTURE 9(5) USAGE IS DISPLAY. RECORD ELEMENT IS EMP-NAME-0415-KBR USAGE IS DISPLAY.
The move begin (%mb) and move end (%me) block commands specify the text block you want to move. The move after (%a) command identifies the line after which you want to place the text block.
IDD nn.n ONLINE PAGE 1 LINE 1 1/3 ADD RECORD IS KBR-DC-REC VERSION IS 3 PREPARED BY KBR. %mb RECORD ELEMENT IS ADDRESS-0415-KBR %mb USAGE IS DISPLAY. RECORD ELEMENT IS EMP-ID-0415-KBR PICTURE 9(5) USAGE IS DISPLAY. RECORD ELEMENT IS EMP-NAME-0415-KBR %a USAGE IS DISPLAY.
The following sample screen shows the results of the block move procedure.
IDD nn.n ONLINE PAGE 1 LINE 1 1/3 ADD RECORD IS KBR-DC-REC VERSION IS 3 PREPARED BY KBR. RECORD ELEMENT IS EMP-ID-0415-KBR PICTURE 9(5) USAGE IS DISPLAY. RECORD ELEMENT IS EMP-NAME-0415-KBR USAGE IS DISPLAY. RECORD ELEMENT IS ADDRESS-0415-KBR USAGE IS DISPLAY.
|
Copyright © 2014 CA.
All rights reserved.
|
|