SNGL display format
In SNGL display format, only one row of the table is displayed on the panel at the one time.
Edit panel in SNGL display format (with all optional columns displayed) shows an example of an edit display in SNGL display format.
The columns of the table are displayed vertically on the panel, with the column header on the left of the panel, and the data for that column on the right. Each column of the table is formatted according to the data type for that column. For example, numeric data types are displayed as whole or decimal numbers, and date and time fields are displayed as dates or times.
By default, the headings are the names of the columns as defined in the Db2® catalog. You can change them by editing the template.
SELECT 1, dbname FROM SYSIBM.SYSTABLES
SELECT CONCAT(dbname, tsname) FROM SYSIBM.SYSTABLES
- The object being edited has a primary key, and the
Allow updates to primary key
option is not selected. - The object being edited is a read-only view.
- The object being edited is the result table from an arbitrary SELECT statement (that is, select statement edit).
- The object being edited is a table, but contains columns, excluding ROWID columns, marked as not updateable in the Db2® catalog. The Db2® catalog tables fall into this category.
- Scroll within the row (up and down)
- Scroll forward and backward within the table (to show the next and previous non-excluded rows)
To display the data in hexadecimal format, use the HEX primary
command HEX ON
.
In SNGL display format, the view or edit display always shows two columns: the name of the column, and the data for that column.
- Ref
- An optional column showing the column number (as defined in the Db2® catalog).
You can turn this optional column on and off with the REFS primary command. The value shown can be zero if displaying the result table from an arbitrary select statement (that is, select statement edit). This indicates either that the column is generated, or that the column is not a column of the first table named in the FROM clause of the SELECT statement that produced the result table.
- Rdf
- Unused.
- Key
- An optional column showing information about primary keys, foreign
keys, unique indexes and check constraints.
You can turn this optional column on and off with the INDEXINF primary command.
- Column
- A column showing the column name.
This column may also show the start and end position of the character data displayed for a row. For this to occur:
- The length of the data for the column must be long enough to require two or more rows to display.
- The
Show char position range
editor option needs to be selected, or the CHARPOS command can be issued to turn on the character position range display. For more information, see Editor Options (3 of 8) panel and CHARPOS command CHARPOS primary command.
- Type(Len)
- An optional column showing the data type for the column (and the
length for non-numeric fields).
You can turn this optional column on and off with the TYPE primary command
- Data
- A column showing the (formatted) data for the column.
- For all FM/Db2 editor sessions by setting the appropriate global option using the Editor Options panels, or
- For the current FM/Db2 editor session only:
- For View, you set the appropriate option using the Db2® View panel.
- For Edit, you set the appropriate option using the Db2® Edit panel.
Related tasks
Related references