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


I—Insert Lines

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

The I (insert) line command inserts one or more lines in your data set or member. The inserted lines are blank unless you have defined a mask. See MASK—Define Masks for more information about defining a mask.

Syntax

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

n
The number of blank lines to insert. If you do not type a number, or if the number you type is 1, only one line is inserted.

Description

To insert one or more lines in a data set or member:

  1. Type I in the line command field of the line that the inserted line is to follow. If you want to insert more than one line, type a number greater than 1 after the I command.
  2. Press Enter. The line or lines are inserted.

If you type any information, even a blank character in the inserted line, the line becomes part of the source data and is assigned a line number the next time you press Enter. However, if you do not type any information, the space for the new line is automatically deleted the next time you press Enter.

If you type information on the last, or only, inserted line and the cursor is still in the data portion of that line, the editor automatically inserts another line when you press Enter or a scroll function key, but only if the new inserted line remains on the panel. If the new line is at the bottom of the panel, the editor automatically scrolls down so that the new line is displayed at the bottom of the screen.

Examples

Figure 1 shows how to insert lines in a member. To insert three lines, type I3 in the line command field.

Figure 1. Before the I (Insert) line command
Screen dump.

When you press Enter, the editor inserts three lines. See Figure 2.

Figure 2. After the I (Insert) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014