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


)—Column Shift Right

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

The ) (column shift right) line command moves characters on a line to the right without altering their relative spacing. Characters shifted past the current BOUNDS setting are deleted. 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 column 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 data other than 2 columns.
  2. Press Enter.

To column 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 column shifted to the right.

The BOUNDS setting limits column shifting. If you shift columns beyond the current BOUNDS setting, the editor deletes the text beyond the BOUNDS without displaying a warning message.

Examples

To shift a group of lines to the right 3 column positions, specify the number of columns and the range in the line command field, as shown in Figure 1.
Figure 1. Before the ) (Column Shift Right) line command
Screen dump.
Figure 2 shows that when you press Enter, the editor shifts the specified lines to the right 3 columns.
Figure 2. After the ) (Column Shift Right) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014