SHIFT (—Shift Columns Left

The SHIFT ( macro command moves characters on a line to the left 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
Macro command syntax

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

linenum
A relative line number identifying the line on which characters are to be moved to the left.
label
A label identifying the line on which characters are to be moved to the left.
n
Specifies the number of columns to shift.

Description

The SHIFT ( command is limited to shifting columns of data on a single line. If you want to shift columns of data on several lines, each line of data columns must be moved individually.

Return codes

0
Normal completion
12
Invalid line number
20
Severe error

Examples

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