Previous Topic: Complete All DiagramsNext Topic: Package the Server Load Modules


Perform Transformation on the Data Model

CA Gen allows you to generate code before you create the database tables. However, first transform the Data Model (DM) into a Technical Design using the Design toolset. The Transformation process creates the definitions for the tables that Construction generates. This information is stored in the Host Encyclopedia.

The system generation tools use the information in the Host Encyclopedia to generate code that references the tables as if they already existed. CA Gen also generates SQL DECLARE TABLE ... statements that are embedded in the COBOL code. For DB2, generation does not depend on a DB2 DCLGEN (Declare Table Generation) having run. To run a DCLGEN, the tables must exist.

During Design, you can transform the complete Data Model or a portion of it. Plan a partial Transformation carefully to avoid problems during system generation. For example, transform all entities that are referenced by the business system you intend to generate.

Be sure to transform entities that are not directly referenced by the action diagrams for the business system, but referenced by the generated code. For example, to implement referential integrity, the generated code includes cascade delete logic for mandatory relationships. This logic reference entities that are not directly referenced by the action diagrams. If these entities are not transformed, system generation fails.

Similar problems occur if you change the Data Model after transforming it. When you change the Data Model, perform a Transformation or a Retransformation. Retransformation processes only the part of the model that changed. This leaves untouched the parts of the modified Data Store List and Data Structure List that did not change. The impact of changes to the Data Model is not always obvious, and a partial Retransformation cause inconsistencies. The DSD consistency check detects these inconsistencies, and is used after partial Retransformation to verify that there are no errors.

The host When Changed Report can help in planning a partial Transformation or Retransformation.

Note: For more information, see the Host Encyclopedia User Guide.