Short cut to Creating an index and use the original table name.

Document ID : KB000019262
Last Modified Date : 14/02/2018
Show Technical Document Details


When creating an index on a table it's often a good idea to create an index with a name similar to the table name. This is a shortcut way to create an index while using the original table name and not have to actually type in the name or copy from another screen.


CA RC/Query for Db2 for z/os and  CA RC/Update for Db2 for z/os must both be available for this procedure to work.


  1. Starting at the CA RC/Query table(T)/ List (L) screen query the table that you would like to create an index from.
  2. When you have the list of tables enter the CREATE command next to the table you want to create an index on.
  3. When on the TABLE CREATE screen change the object field to an I for INDEX : Object => I and press enter and it will change to the INDEX CREATE screen.
  4. On the Index Create screen the original table name is now in the Index Name field
  5. COPY the original table name and PASTE into the TABLE NAME field.
  6. If you wish to, change the index name slightly to reflect that it is an index associated with this table and press enter.
  7. RC/Update will display "Index Column Selection & Key Maintenance" screen so that an index column or columns can be selected. Select the columns required with an "S" and press enter and then PF3 to return to the INDEX CREATE screen.
  8. After checking the other index attributes press PF3 to generate the index DDL.
  9. Execute the DDL by pressing enter.

Additional Information:

RC/Query for db2 for z/os, Table Reports

RC/Update for db2 for z/os, Index Create Option