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


SHIFT <—Shift Data Left

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

The SHIFT < macro command moves the body of a program statement to the left without shifting the label or comments. This command prevents loss of nonblank characters by stopping before shifting nonblank characters past the bound. See Shifting data for more information.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

                                   .-2-.   
>>-ISREDIT--SHIFT--<--+-linenum-+--+---+-----------------------><
                      '-label---'  '-n-'   

linenum
A relative line number identifying the line on which the body of a program statement is to be moved to the left.
label
A label identifying the line on which the body of a program statement is to be moved to the left.
n
Specifies the number of columns to shift.

Description

The SHIFT < command is limited to shifting data on a single line. To shift data on several lines, you must shift data on each line individually.

Return codes

0
Normal completion
12
Invalid line number
20
Severe error

Examples

To shift data 4 columns to the left on the line that contains the cursor:
ISREDIT SHIFT < .ZCSR 4
To shift data 2 columns to the left on the line with the label .LAB:
ISREDIT SHIFT < .LAB

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014