The
R (repeat) line command repeats one or more lines in your data set
or member immediately after the line on which the R command is entered.
Syntax

>>-R--+---+----------------------------------------------------><
'-n-'

>>-RR--+---+---------------------------------------------------><
'-n-'
- n
- The number of lines to be repeated. If you do not type a number,
or the number you type is 1, only the line on which you type R is
repeated.
Description
To repeat one or more lines:
- Type R in the line command field of the line
that is to be repeated. If you want to repeat the line more than once,
type a number that is greater than 1 immediately after the R command.
- Press Enter. The editor inserts a duplicate copy or copies of
the line immediately after the line that contains the R command.
To repeat a block of lines:
- Type RR in the line command field of both the
first and last lines to be repeated. You can scroll (or use FIND or
LOCATE) between typing the first RR and the second RR,
if necessary.
- Press Enter. The lines that contain the two RR commands and all
of the lines between them are repeated immediately after the line
that contains the second RR command.
Examples
Figure 1. Before the R (repeat) line command
When you press Enter, the editor repeats line 000400 five
times. See Figure 2.
Figure 2. After the R (Repeat) line command