Define Sort Key Columns [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Define Sort Key Columns
Purpose
Defines column boundaries for the sort commands.
Default Syntax
ESC k
Description
This command defines left and right column boundaries for the key field
used by the Sort Ascending and Sort Descending commands. When you use
one of the sort commands, HP EDIT sorts each line based on the string
value of the key located between the column boundaries.
When you issue this command, HP EDIT prompts for left and right column
boundary values. These values remain for the duration of the editing
session or until you execute the command again to redefine the
boundaries. You can execute the Show Editor Statistics command to
display the column values.
Procedure
To assign left and right column boundaries:
1. Press ESC and the k key. HP EDIT displays the following prompt on
the message line:
Left sort column? _
2. Type a number at the cursor position representing the desired left
column boundary and press Return. HP EDIT displays the following
prompt on the message line:
Right sort column? _
3. Type a number at the cursor position representing the desired
right column boundary and press Return. HP EDIT saves these
values and returns the cursor to its former position in the text.
Related Commands
Sort Ascending
Sort Descending
MPE/iX 5.0 Documentation