Managing the prefix area
The prefix area displays line numbers that represent the row number in the Db2® table or view being edited.
The prefix area also doubles as the prefix command entry area. You enter prefix commands by overtyping the row number for the appropriate row.
- Insert or delete rows
- Repeat (duplicate) rows
- Move rows
- Shift data
- Limit the data being edited
Process Options Utilities Help
FM/Db2 Available Edit Prefix Commands
More: +
Prefix commands
You can enter the following commands in the prefix area of the data display:
A identifies the record after which data is to be moved or copied.
B identifies the record before which data is to be moved or copied.
C copy one record.
Cn copy n records.
CC copy block of records. Mark start and end of block.
D delete one record.
Dn delete n records.
DD delete block of records. Mark start and end of block.
E displays information about why Db2 rejected the change to a row
F display the first record of a block of excluded records.
Command ===>
F1=Help F2=Split F3=Exit F4=CRetriev F7=Backward F8=Forward
F9=Swap F10=Actions F12=Cancel
In a File Manager/Db2 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
.
Related references