Managing the prefix area
The prefix area displays line numbers that represent the record number of each line in the data set being edited.
The prefix area also doubles as the prefix command entry area. You enter prefix commands by overtyping the line number for the appropriate record.
- Insert or delete lines
- Repeat (duplicate) lines
- Move lines
- Shift data
- Limit the data being edited
- Highlight unidentified segments when you are working with segmented records with related ID criteria.
- Identify records not selected because of invalid length when you are working with variable-length arrays.
- Indicate why a record is not selected in an editor session.
Related topics
- How File Manager handles segmented data with related ID criteria
- Support for variable-length arrays
- Seeing why a record is not-selected
In an editor session, you can choose whether a prefix area is displayed next to the data or not.
- Display prefix area
- Display prefix area on the right
- Prefix area width (A,6,7,8,9)
- To display the prefix area on the right, enter
PREFIX RIGHT
. - To display the prefix area as an 8-digit field,
enter
PREFIX 8
. - To display the prefix area
with a width that automatically
adjusts (from 6 to 9 digits wide) in order to display the record number,
enter
PREFIX A
. - To remove the display of
the prefix area, enter
PREFIX OFF
.
You can use most prefix commands on either a single line or a block of consecutive lines:
- To perform an operation on a single line, you enter the appropriate prefix command.
- To perform an operation on a block of consecutive lines, either enter the prefix command preceded or followed by the number of lines, or enter the appropriate block prefix command at the start and end lines of the block.
Generally, you need to type over only the first 1 or 2 characters of the line number to enter a prefix command. Sometimes, however, typing a single character can be ambiguous. In the following example, it is unclear whether the intended prefix command is R to repeat line 31700, or R3 to repeat the line three times:
031600
R31700
031800
In such cases, the editor assumes that you have not typed a number following the prefix command. If you want to repeat the line three times, you can use any of the following methods:
- Type one or more blanks following the R3:
R3 700
- Type
R3
and press the Erase EOF key to clear the rest of the Line Command field, or press the Erase EOF key and then typeR3
. - Type one or more blanks after the
R but before the number
such that the number when entered is different than the
characters being overtyped.:
R 3700
- Type the number before the R,
ensuring that the number when entered
is different than the characters being overtyped:
3R1700
To clear any outstanding commands in the prefix area, use the RESET PREFIX command. See RESET primary command.
Prefix commands do not affect not-selected or suppressed records that are hidden from display or represented by shadow lines. For example, if you use the MM prefix command to mark a block of records for moving, then not-selected or suppressed records that are hidden from display or represented by shadow lines are not affected by the move, and are left behind at their original position. Prefix commands do affect excluded records, even when they are hidden from display (by SHOW EX OFF and SHADOW EX OFF).
Related topics