z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


R—Repeat Lines

z/OS ISPF Edit and Edit Macros
SC19-3621-00

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

Read syntax diagramSkip visual syntax diagram
>>-R--+---+----------------------------------------------------><
      '-n-'   

Read syntax diagramSkip visual syntax diagram
>>-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:

  1. 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.
  2. 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:

  1. 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.
  2. 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
Screen dump.

When you press Enter, the editor repeats line 000400 five times. See Figure 2.

Figure 2. After the R (Repeat) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014