Data Definition Language (DDL) Reference Manual
Dictionary Maintenance
Data Definition Language (DDL) Reference Manual—529431-004
10-13
Making Major Modifications
Making Major Modifications
If you have made many changes to a dictionary interactively through the DDL compiler,
HP recommends that you recompile the entire dictionary.
Rather than using the original schema, which might not reflect all changes to the
dictionary, create a new schema from the dictionary. You can generate a new schema
exactly as in Generating a schema From a Dictionary on page 10-1.
After you have a schema that accurately reflects the current dictionary, you can edit
the schema and then recompile it to build a new dictionary. If you made the changes
directly to the dictionary schema, you can compile the schema to build a new
dictionary.
In either case, be sure that all objects referenced by other objects are added first: DDL
cannot compile a referring object if the object it refers to is not already in the dictionary.
To recompile a dictionary:
1. Generate a new schema from the current dictionary using the procedure in
Generating a schema From a Dictionary on page 10-1. For example:
48> VOLUME $data.sales
49> DDL DICT
!?DDL newsrc !
!OUTPUT *.
!EXIT
2. Edit the schema, making the necessary deletions, modifications, and additions.
3. Compile the schema into a new dictionary.
If you do not need the old dictionary, you can clear it at this time and write the new
dictionary objects back into the cleared dictionary files. For example:
50> DDL /IN newsrc/DICT $data.sales !
If you want to keep the old dictionary while you test the new dictionary, you can
create the new dictionary on a different subvolume. For example:
51> DDL/IN newsrc/DICT $data.newsales
*EXIT
Exit editor
!?SOURCE modfile
!EXIT
Compile changes into dictionary and exit DDL
Note. do not use the procedure for generating a new schema to modify a dictionary that is part
of a Pathmaker catalog. Pathmaker dictionaries contain application design information that is
not in generated DDL schemas.
Example 10-9. Modifying a Reference Object (page 2 of 2)