Table Edit panel
Panel and field definitions
- Prefix area
- In TABL format mode, you can enter the following commands in the
prefix area of the data display:
- A
- Identifies the row after which data is to be moved or copied.
- B
- Identifies the row before which data is to be moved or copied.
- C
- Copy one row.
- Cn
- Copy n rows.
- CC
- Copy block of rows. Mark start and end of block.
- D
- Delete one row.
- Dn
- Delete n rows.
- DD
- Delete block of rows. Mark start and end of block.
- E
- Display
a panel containing information about why a change to this row failed.
The E command is only valid when a row is marked in error. Rows marked
in error have
=ERR
,ERR R
, or the SQLCODE in the prefix field. - F
- Display the first row of a block of excluded rows.
- Fn
- Display the first n rows of a block of excluded rows.
- FS
- Change the display format to SNGL and display the row.
- G
- Get the data stored on the clipboard. Rows saved on the clipboard with the S, Sn or SS prefix commands can only be retrieved from the clipboard with the G prefix command during the same Edit session. The clipboard is a temporary memory buffer that is cleared when you exit from the Db2® Edit function panel (and FM/Db2 returns you to the Primary Option Menu).
- I
- Insert
one row. The row is initialized using the row description of the currently
displayed row. For each column, if it has a default value (DEFAULT="value",
and not just the DEFAULT keyword), then it is initialized to that
value. Otherwise, the column is initialized according to its data
type:
- Character strings
- Set to blanks
- Numeric
- Set to zeros
- Row identifier
- Set to blanks
- DATE
- Set to the current date
- TIME
- Set to the current time
- TIMESTAMP
- Set to the current date and time
Note: If a column of the inserted row can contain a null value, it is set to the null value and the null column display indicator is displayed in the displayed column.For more information about setting the value of the null column display indicator, see View and Edit options (options 1 and 2).
Related tasks
Related references
- In
- Insert n empty rows.
- IP
- Insert a primary key. In an Edit session of a related parent table only, insert a row with the key columns set to the key value that originally caused the error in the dependent table of the relationship.
- IPn
- Insert n primary keys. In an Edit session of a related parent table only, insert n rows with the key columns set to the key value that originally caused the error in the dependent table of the relationship. If you attempt to save the data, it results in duplicate key errors for the second and all subsequent inserted rows, as primary key values must be unique.
- J
- Join together two or more records - as shown in TABL display mode - into a single, longer
record. The record where the prefix command is issued is the record that becomes longer.
Any repetition count (for example,
J4
) is ignored. The J command can only be issued against a visible record. The join process continues downwards from the current location until:- The new length for the record would exceed the maximum allowed.
- The last record in the editor session is encountered.
This prefix command is only available in a File Manager/Db2 LOB editor session.
- L
- Display the last row of a block of excluded rows.
- Ln
- Display the last n rows of a block of excluded rows.
- LC
- Convert
all uppercase characters in a row to lowercase. Note: The LC (LCn, LCC) command affects all characters in a row, not just characters in columns with a CHAR or VARCHAR data type. Therefore, numeric data, such as binary data or packed decimal data, can be corrupted when you use these commands.
- LCn
- Convert all uppercase characters in n rows to lowercase. (See note for LC.)
- LCC
- Convert all uppercase characters in a block of rows to lowercase. Mark start and end of block. (See note for LC.)
- M
- Move one row.
- Mn
- Move n rows.
- MM
- Move block of rows. Mark start and end of the block.
- O
- Overlay one row.
- On
- Overlay n rows.
- OO
- Overlay block of rows. Mark start and end of the block.
- P
- Identifies the row preceding which data is to be moved or copied .
- R or "
- Repeat one row.
- Rn or "n
- Repeat n rows.
- RE
- Edit
a related table. You can use the RE prefix command to edit the related
table when the row is marked with a error caused by a referential
constraint.
You can only enter the RE prefix command against a row marked in error, where the rightmost position of the prefix area contains an
R
. RE starts another FM/Db2 dependent edit session, in a new ISPF logical session. The new (dependent) FM/Db2 Edit session is for the related table in the relationship that caused the referential constraint error. For more details, see Editing related tables.Note: When you use the RE prefix command for a row whose prefix area contains=ERR R
, take care to avoid the editor interpreting the RE command as an R prefix command instead by ensuring theRE
is followed by one or more blanks).The RE command lets you quickly identify and resolve referential constraint errors. After you use the RE command to edit a related table, you cannot save data until you end the dependent Edit session of the related table.
This restriction also applies to tables that are part of a larger referential structure. For example, say A, B and C are related tables and A and B are part of a relationship in which A is the parent table, and B and C are part of a relationship in which B is the parent table. If you edit table A, then use the RE command to edit related table B, then use the RE command in the Edit session of table B to edit table C, it would result in 3 FM/Db2 Edit sessions. The Edit sessions for tables B and C are both dependent edit sessions of the Edit session for table A. You cannot save data in the Edit session for table A until you end the Edit sessions for tables B and C.
- RR or ""
- Repeat block of rows. Mark start and end of the block.
- RRn or ""n
- Repeat block of rows n times. Mark start and end of block.
- S
- Save row on clipboard. The clipboard is a temporary memory buffer that is cleared when you exit from the Db2® Edit function panel (and FM/Db2 returns you to the Primary Option Menu).
- Sn
- Save n rows on the clipboard.
- SP
- Split a single record into multiple pieces, the length of each piece depends on the terminal
characteristics. Each piece appears in TABL display mode with the end of the record marker
displayed - in other words all of the data for each piece is visible in TABL display mode
without the need to scroll.
This prefix command is only available in a File Manager/Db2 LOB editor session.
- SS
- Save blocks of rows on the clipboard. Mark start and end of block.
- UC
- Convert
all lowercase characters in a row to uppercase. Note: The UC (UCn, UCC) command affects all characters in a row, not just characters in columns with a CHAR or VARCHAR data type. Therefore, numeric data, such as binary data or packed decimal data, can be corrupted when you use these commands.
- UCn
- Convert all lowercase characters in n rows to uppercase. (See note for UC.)
- UCC
- Convert all lowercase characters in a block of rows to uppercase. Mark start and end of block. (See note for UC.)
- X
- Exclude row from display. If the display of excluded row shadow lines is enabled (see SHADOW primary command), a shadow line is shown indicating how many rows are being excluded at this position. To display an excluded row, use the F or LA prefix command.
- Xn
- Exclude n rows from display. If the display of excluded row shadow lines is enabled (see SHADOW primary command), a shadow line is shown indicating how many rows are being excluded at this position.
- XX
- Exclude block of rows from display. Mark start and end of block. If the display of excluded row shadow lines is enabled (see SHADOW primary command), a shadow line is shown indicating how many rows are being excluded at this position.
- .xxxx
- Label
a row. The label, xxxx, is a string of 1
to 4 alphabetic characters, that does not start with the character
Z
(labels starting withZ
are system labels). Labels can be assigned to any row. Labels cannot be assigned to shadow lines.
Parent panels
Child panels
None.