Go To Column/Mark [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Go To Column/Mark
Purpose
Moves the cursor to a specified column within a line or to a text mark.
Default Syntax
[n] ESC g
where n is a count that represents a mark number from 1 to 11.
Description
This command serves a dual purpose. You can either use the command to
move the cursor to another column within the current cursor line, or you
can use the command to move the cursor to a location that has been
previously marked with the Set Mark command.
Column Function
If you want to move the cursor to another column within the current line,
you execute the command without a count. HP EDIT then prompts you for a
column number. HP EDIT responds to your input by moving to the specified
text column, which may differ from the screen column depending on whether
the file is unnumbered, standard-numbered, or COBOL-numbered.
Unnumbered and Variable Files
For unnumbered and variable files, HP EDIT moves the cursor to the
specified column number on the screen as well as in the text. For
instance, if you specify 8 as the desired column number, HP EDIT moves
the cursor to screen column 8, which is also text column 8.
Standard Numbered Files
If line numbers are displayed for standard numbered files, they consume
the first 10 columns of the screen. Consequently, the resulting screen
column is 10 more than the specified text column. If line numbers are
not displayed, HP EDIT responds as it would for unnumbered files.
COBOL Numbered Files
If numbers are displayed for COBOL numbered files, eight screen positions
display the line numbers. The actual text of the file only contains six
digits, but HP EDIT includes a decimal point and space on the display for
readability.
In computing a screen column to go to, HP EDIT treats the six digits as
text columns. Consequently, the resultant screen column is two greater
than the text column specified. For example, if you specify column 8 in
response to the prompt, the cursor moves to screen column 10, which is
the second column of text past the line number. This corresponds to the
eighth character in the actual text line.
If numbers are not displayed, HP EDIT treats the invisible numbers as six
column positions. The resultant screen column is six less than the
specified text column.
Mark Function
If you want to move the cursor to a text mark, you supply the mark number
as a count before entering the command. Before you can use the command
in this manner, you must have previously marked the text you want to
retrieve, using the Set Mark command.
Procedure
To move the cursor to another column within the current cursor line:
1. Press ESC and the g key. HP EDIT displays the prompt Column? on
the message line.
2. Enter the desired column number. HP EDIT shows the specified
column number beside the prompt.
3. Press Return. HP EDIT moves the cursor to the specified column.
To move the cursor to an existing mark:
1. Enter the mark number corresponding to the marked location. HP
EDIT displays the number you entered on the message line at the
top of the screen.
2. Press ESC and the g key. HP EDIT moves the cursor to the line
where the text mark is located.
Examples
To move the cursor to text column 10 in the following unnumbered line:
Move the cursor in this line.
1. Press ESC, then press the g key. HP EDIT displays the following
prompt:
Column?
2. Type the number 10 and press Return. HP EDIT moves the cursor to
text column 10 as shown:
Move the cursor in this line.
To move the cursor to text column 10 in the following standard-numbered
line:
12 Move the cursor in this line.
1. Press ESC, then press the g key. HP EDIT displays the following
prompt:
Column?
2. Type the number 10 and press Return. HP EDIT moves the cursor to
text column 10 (screen column 20) as shown:
12 Move the cursor in this line.
To move the cursor to text column 10 in the following COBOL-numbered
line:
1.7 Move the cursor in this line.
1. Press ESC, then the g key. HP EDIT displays the following prompt:
Go to column?
2. Type the number 10 and press Return. HP EDIT moves the cursor to
text column 10 (screen column 12) as shown:
1.7 Move the cursor in this line.
Related Commands
Go to Line/Mark
Set Mark
MPE/iX 5.0 Documentation