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


>—Data Shift Right

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

The > (data shift right) line command moves the body of a program statement to the right without shifting the label or comments. This command attempts to prevent loss of data. See Shifting data for more information.

Syntax

Read syntax diagramSkip visual syntax diagram
      .-2-.   
>>->--+---+----------------------------------------------------><
      '-n-'   

Read syntax diagramSkip visual syntax diagram
       .-2-.   
>>->>--+---+---------------------------------------------------><
       '-n-'   

n
A number that tells the ISPF editor how many positions to shift. If you omit this operand, the default is 2.

Description

To data shift one line toward the right side of your display:

  1. Type > in the line command field of the line to be shifted. Beside the command, type a number other than 2 if you want to shift the line other than 2 columns.
  2. Press Enter.

To data shift a block of lines toward the right side of your display:

  1. Type >> in the line command field of the first line to be shifted. Beside the command, type a number other than 2 if you want to shift the block of lines other than 2 columns.
  2. Type >> in the line command field of the last line to be shifted. You can scroll (or use FIND or LOCATE) between typing the first >> and the second >>, if necessary.
  3. Press Enter. The lines that contain the two >> commands and all of the lines between them are data shifted to the right.

The BOUNDS setting limits data shifting. If you shift data beyond the current BOUNDS setting, the text stops at the right bound and the shifted lines are marked with ==ERR> flags. If an error occurs in an excluded line, you can find the error with the LOCATE command, and remove the error flag by using RESET.

Examples

To use a data shift to insert 5 blanks before a segment of three lines, specify the shift and the range in the line command field, as shown in Figure 1.
Figure 1. Before the > (Data Shift Right) line command
Screen dump.
When you press Enter, the editor inserts 5 blanks on the specified lines. See Figure 2. Notice that the editor does not shift the data within the BOUNDS setting.
Figure 2. After the > (Data Shift Right) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014