SHIFT <—Shift Data Left

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 diagramISREDITSHIFT<linenumlabel2n
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