Column Selection/Edit panel
You use the Column Selection/Edit panel to edit a template.
Panel and field definitions
- Object type and name
- The object type (TABLE or VIEW) and the name of the Db2® object being processed.
- Row Selection Criteria
- Field where you can enter a freeform SQL WHERE clause or expression
that limits the rows selected from Db2®.
If the template already contains row selection criteria, FM/Db2 shows the corresponding WHERE clause in this field.
- Cmd
- Prefix command area for entering template editor prefix commands:
- S, SS, Sn, S*
- Selecting (or deselecting) columns.
- H, HH, Hn
- Holding (or freeing) columns.
- E
- Changing the attributes of a column.
- X
- Displaying data for character columns in LHEX. The data for Binary and Varbinary columns is displayed in LHEX by default.
- Seq
- The display sequence number of the column (in a File Manager/Db2 editor session) indicating either of these:
- The sequence number you have entered to change the sequence of the displayed columns.
- The sequence number generated by FM/Db2 as a result of a hold template editor prefix command (H, HH, or Hn) being entered in the Cmd prefix entry area.
- S
- Column selection indicator. An asterisk (*) shows that the column is selected. Only selected columns appear in a File Manager/Db2 editor session.
- H
- Column hold indicator. An
H
shows that the column is held.In TABL mode, held columns appear as the leftmost columns in a File Manager/Db2 editor session and are unaffected by scrolling left or right. In SNGL mode, held columns appear as the topmost columns in an editor session and are unaffected by scrolling up or down.
- E
- Data edit indicator. An
E
shows that the column has been previously edited to add information such as data create, column headings, or scrambling options. - X
- LHEX indicator. An
X
shows that the data for the column is displayed in LHEX (Long Hexadecimal) format. - Cl#
- The column number as defined in the Db2® catalog.
The column number reflects the Db2® column
number unless either of the following are true:
- The column is a generated column
- The column is not a column of the first table named in the SELECT statement used to create the result table
- Column name
- The name of the column.
- Data type(length)
- The Db2® data type (and optionally the length) of the column.
- Null
- Shows whether the column is defined as nullable.
- Y
- Nullable column
- (blank)
- Db2® null values are not permitted
- Default
- Default value information for the column:
- Always
- Either a ROWID or identity column defined with the generated always attribute.
- Default
- Either a ROWID or identity column defined with the generated by default attribute.
- None
- There is no default value for the column.
- Null
- The default value is the Db2® null value.
- On type
- The column has a default value that depends on the data type of the column:
- Data type
- Default value
- Numeric
- 0
- Fixed-length character data types
- Blanks
- Varying-length data types
- String of length 0
- DATE
- Current® date
- TIME
- Current® time
- TIMESTAMP
- Current® date and time
- On value
- The column has a default value that is defined in the DEFAULTVALUE column of the SYSIBM.SYSCOLUMNS catalog table.
- SQLID
- The default value is the value of the SQL authorization ID of the process at the time the default value is used.
- USER
- The default value is the value of the USER special register at the time the default value is used.
- Order
- An optional sequence number indicating how to order the data, based on the data values for the column, when the data is retrieved from Db2®.
- A/D
- Sort sequence indicator. You can only specify this if an order
sequence number (Order) is also specified.
- A
- Ascending
- D
- Descending
Parent panels
Child panels
To display this panel… | Use/do this |
---|---|
Table View panel | If parent panel is Db2® View and you press F3 |
Db2 View panel | If parent panel is Db2® View and you press F12 |
Table Edit panel | If parent panel is Db2® Edit and you press F3 |
Db2 Edit panel | If parent panel is Db2® Edit and you press F12 |
Table Browse panel | If parent panel is Db2® Browse and you press F3 |
Db2 Browse panel | If parent panel is Db2® Browse and you press F12 |
Template Save panel | Press F3 |
Db2 Template Description panel | Primary command DESCRIBE |
Export Utility ("To") panel | If parent panel is Export Utility and you press F3 |
Column Attributes panel (alphanumeric) | Line command E for an alphanumeric column |
Column Attributes panel (numeric) | Line command E for a numeric column |
Column Attributes panel (DATE) | Line command E for a DATE column |
Column Attributes panel (TIME) | Line command E for a TIME column |
Column Attributes panel (TIMESTAMP) | Line command E for a TIMESTAMP column |
Row Selection Criteria panel | Enter 1 on the command line |
Related tasks
- Locating a column
- Restricting the data that FM/Db2 loads from Db2
- Large numeric fields
- Copying data from one Db2 object to another
- Copying data from a VSAM or QSAM file
- Copying data to a VSAM or QSAM file
- Editing the template
- Running Print in batch
- Editing a template
- Using the SQL Edit session
- Manipulating columns
- Selecting columns
- Holding columns on the display when scrolling
- Changing the sequence of displayed or printed columns
- Changing the sequence of displayed or printed rows
- Changing the column heading
- Changing column attributes