Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pre/PostSQL Demonstrations for Selected Target Databases

Metadata Operations and Target Database Operations

OperationDescription
Generate Partitions for OS390 Clustered Indexes

Provides and interface to add multiple partitions to clustered indexes.

A list of tables is provided. Selecting a table will load the clustered indexes to be partitioned. The storage parameters are uniform across partitions.

Get Related Tables

Selects the related parents and/or child of the selected tables.

To use the macro, lasso a group of entities on the diagram or select them in the diagram tree, and then right click on the macro to execute.

Parents and children

will be

are selected depending if the option is checked.

This

Use this macro

can be used

to assist in submodel creation.

ImportDataDictionary -
Import Data Dictionary

Import Data Dictionary objects from a flat file.

The imported file has to follow a specific format guidelines listed in the comments with examples.

Index Naming

...

Applies naming conventions to all types of indexes.

It provides an option to use the selected tables or all tables. The prefix and suffix variables can be used to add company specific conventions to the beginning and/or end of the target name.

The target name can be either the existing name, table name, tablespace name or database name. The tablespace and database can only be used for applicable platforms such as Oracle or DB2.

Truncate parameters can also be specified to remove the first N characters or the last N characters of the target name.

...

Use another parameter to limit the total number of characters in the target name. These are applied before the prefix and suffix are added.

Name Foreign Constraints

...

Prompts the user with a dialog to specify the naming convention for Foreign Constraints.

It

...

then

...

names all of the constraints using the parent and child table names

...

and makes sure that the name is unique by adding an index for the last characters of duplicate names.

Name Primary Constraints

...

Names all primary key constraints with the given naming conventions.

The table name with either a prefix or suffix.


ProcedureEdit - Adds a Synonym to a specified table/view. The macro will prompt the user with a dialog to choose the table/view. The synonym code will be inserted into the PostSQL of the specified table/view.
























Selectively Output PK and FK DDL - Outputs DDL for primary and foreign constraints for all selected tables. To operate, selected the desired tables, then right-click on the macro to execute. The DDL can be previewed or written to a file.

...