Use the RIGHT subcommand to view columns of data not currently visible on the screen. The RIGHT
subcommand allows you to see data that is to the right of the last (right-most) column
on the screen. The data moves to the left, thus allowing you to see a specified number of positions
to the right of the last column.
Operands
n
specifies the number of positions to the right of the last column on the screen you want to see.
If n is not specified, one position to the right of the last column
becomes visible.
Usage Notes
The RIGHT subcommand does not cause data to be lost, nor does it move the line or column
pointer.
To get the data back to its original position, use the LEFT n
subcommand. See RGTLEFT (Macro).
RIGHT subcommands are cumulative. For example entering the subcommands:
ri 10
ri 10
is equivalent to entering:
ri 20
If you have issued several RIGHT or LEFT subcommands and have forgotten the total value of
n:
RIGHT 0 or LEFT 0 restores the screen to its original display.
SET VERIFY resets RIGHT (or LEFT) to zero.
QUERY VERSHIFT displays n (the result of a RIGHT) or
–n (the result of a LEFT).
The total number of columns moved cannot exceed the logical record length.
Notes for Macro Writers
EXTRACT/VERSHIFT/ returns the value of n or
–n.
Examples
Figure 1 is a before-and-after example of the RIGHT subcommand. Line 20 is the
current line. Figure 1. RIGHT Subcommand — Before and After
OGDEN NASH A1 F 80 Trunc=80 Size=28 Line=20 Col=1 Alt=0
00011
00012 THE SONG OF CANARIES
00013 NEVER VARIES.
00014 AND WHEN THEY'RE MOULTING
00015 THEY'RE PRETTY REVOLTING.
00016
00017 THE GIRAFFE
00018
00019 I BEG YOU, CHILDREN, DO NOT LAUGH
00020 WHEN YOU SURVEY THE TALL GIRAFFE.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7...
00021 IT'S HARDLY SPORTING TO ATTACK
00022 A BEAST THAT CANNOT ANSWER BACK.
00023 HE HAS A TRUMPET FOR A THROAT,
00024 AND CANNOT BLOW A SINGLE NOTE.
00025 IT ISN'T THAT HIS VOICE HE HOARDS;
00026 HE HASN'T ANY VOCAL CORDS.
00027 I WISH FOR HIM, AND FOR HIS WIFE,
00028 A VOLUBLE GIRAFTER LIFE.
00029 * * * End of File * * *
====> right 10
X E D I T 1 File
OGDEN NASH A1 F 80 Trunc=80 Size=28 Line=20 Col=1 Alt=0
00011
00012 F CANARIES
00013 ES.
00014 HEY'RE MOULTING
00015 ETTY REVOLTING.
00016
00017 E
00018
00019 CHILDREN, DO NOT LAUGH
00020 URVEY THE TALL GIRAFFE.
....+....2....+....3....+....4....+....5....+....6....+....7....+....>...
00021 Y SPORTING TO ATTACK
00022 AT CANNOT ANSWER BACK.
00023 RUMPET FOR A THROAT,
00024 BLOW A SINGLE NOTE.
00025 HAT HIS VOICE HE HOARDS;
00026 ANY VOCAL CORDS.
00027 HIM, AND FOR HIS WIFE,
00028 GIRAFTER LIFE.
00029 * * * End of File * * *
====>
X E D I T 1 File
Responses
The screen moves to the right relative to the file data.