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


D—Delete Lines

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

The D (delete) line command deletes lines from your display.

Syntax

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

Read syntax diagramSkip visual syntax diagram
>>-DD----------------------------------------------------------><

n
The number of lines to be deleted. If you do not type a number, or if the number you type is 1, only the line on which you type D is deleted.

Description

To delete one or more lines:

  1. Type D in the line command field of the line to be deleted. If you also want to delete one or more lines that immediately follow this line, type a number greater than 1 after the D command.
  2. Press Enter.

    The line or lines are deleted.

To delete a block of lines:

  1. Type DD in the line command field of both the first and last lines to be deleted. You can scroll (or use FIND or LOCATE) between typing the first DD and the second DD, if necessary.
  2. Press Enter.

    The lines that contain the two DD commands and all of the lines between them are deleted.

Examples

To delete two lines, type D2 in the line command field of the first line you want to delete. See Figure 1.

Figure 1. Before the D (Delete) line command
Screen dump.

When you press Enter, the editor deletes the two lines specified. See Figure 2.

Figure 2. After the D (Delete) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014