The SHIFT command shifts a line or range of lines by one or more columns to the right or to the left. The SHIFT command only applies to programs (procedure definition) and data members. You can restrict SHIFT to an inclusive range of lines and columns using the format below or using the SET EDIT BOUNDS command.
This command has the following format:
{RIGHT}
SHIFT {LEFT } nnn [LINE[S] start‑line [end‑line]]
[COLUMNS start‑column [MAX ]]
[ [end‑column]]
Line and column ranges specified in a SHIFT command only apply to the current command. Specifying lines or columns is optional.
Number of columns to shift the data.
Line where the shift begins. You can specify it as:
num Sequence number of the start line.
TOP Indicates the first line of the member. If you do not specify a start line, TOP is the default.
CURSOR Indicates the position where the cursor is located.
A position relative to the top line displayed:
* Top line displayed.
*+n Line n number of lines below the top line displayed.
*‑n Line n number of lines before the top line displayed.
Note: You can omit the keyword LINE when you specify TOP, BOTTOM, or an offset.
Line where the shift ends. You can specify it as:
BOTTOM Default. Last line of the member.
num Sequence number.
CURSOR Indicates the position where the cursor is located.
offset Position relative to the top line displayed:
* Top line displayed.
*+n Line n number of lines below the top line displayed.
*‑n Line n number of lines before the top line displayed.
Column where the shift begins.
Column where the shift ends.
Default. Farthest right‑hand column.
Using SET EDIT TRUNCATION Y, you can shift data past the end of the column range (with truncation). Using SET EDIT TRUNCATION N, data that would be truncated is instead positioned at the margin, and the SHIFT proceeds to other lines in the range. This lets you left‑ or right‑align data. This differs from the CHANGE command.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|