Primary Keys Editor (IBM DB2 Z/OS)

From DBArtisan
Jump to: navigation, search

Go Up to IBM DB2 for z/OS Object Editors

The Primary Keys Editor lets you manage primary key columns as well as work with storage, space, and partitions for a primary key.

Tip: The refresh button lets you refresh or clear the editor’s contents, and log SQL.

To edit a primary key

  1. Open an editor on the primary key. For details, see Opening an Object Editor.
  2. Use the following table as a guide to understanding and modifying the settings on the tabs of this editor:
Tab Settings and tasks


Lets you manage columns that make up the primary key. On opening, this tab shows the existing columns. For each column, the listing shows the datatype (and if applicable the precision in brackets) and whether the table definition permits nulls in the target table column. Optionally you can:

Change the Sort order of a column.

Click the New button and select a column name from the dropdown, to add a column to the primary key.

Select a column and click the Drop button to delete the column from the primary key.

Select a column and use the arrow buttons to reorder the columns in the primary key.


Lets you set Buffer Pool, Close, Copy and Piece Size properties.


Lets you view Storage Group and VCAT Catalog properties. Lets you set Primary Space Allocation, Secondary Space Allocation, Erase, Free Page, Percent Free, and GBP Cache properties.


Lets you work with partitions for the primary key.


Lets you view values in the following property groups:


Make Unique, System Required, Total Keys, Page Fetch Pairs, and Distinct Keys.


Index Level, Cluster Ratio, Cluster Factor, Leaf Pages, Sequential Pages, and Density.


First Key and Full Keys.


For details on using this tab, see Adding a Comment to an object.

DDL View

For details on using this tab, see Viewing the SQL/DDL for an Object.

3. When finished, you can submit your changes. For details, see Previewing and Submitting Object Editor Changes.