TNS/R Native Application Migration Guide

Data Definition Language (DDL) Migration Tasks
TNS/R Native Application Migration Guide523745-001
7-2
Generating New Host-Language Source Code Files
Generating New Host-Language Source Code
Files
If a program uses host-language source files that HP supplies, you do not need to
generate new host-language source files. HP products that supply DDL files have been
generated by D40 DDL for you. Proceed to the heading Compiling With New Host-
Language Source Code Files on page 7-3.
If a program uses host-language source files that you created, you must generate new
files with the D40 DDL compiler. The DDL compiler requires a DDL source schema file
or a DDL dictionary to generate host-language source files. If you think your DDL
dictionary differs from your DDL source schema files, generate a new DDL dictionary.
Before generating a new DDL dictionary:
1. Make a complete backup of the existing DDL dictionary.
2. Generate new source schema files from the existing DDL dictionary.
3. Compare the existing source schema files with the new source schema files and
resolve any differences by making the appropriate changes in the source schema
files.
4. Generate the new DDL dictionary using the corrected source schema files.
To identify those DDL files that you have generated with the D40 DDL compiler, you
might want to add a comment to the DDL source schema files similar to that used in
HP source schema files:
DDL output recompiled with D40 DDL to allow native and non-
native applications to share structures.
See the Data Definition Language (DDL) Reference Manual for complete DDL usage
information.
Caution. Do not attempt to regenerate a DDL dictionary installed by the Pathmaker product
from DDL source code; Pathmaker application design information will be lost.