Dictionary Maintenance
Data Definition Language (DDL) Reference Manual — 426798-002
10 -13
Making Major Modifications
generate a new schema exactly as described under
Generating a Backup Schema
on
page 10-1.
After you have a source 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, do this:
1. Generate a new schema from the current dictionary using the procedure described
under
Generating a Backup Schema
on page 10-1.
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.
To illustrate this procedure, generate a current schema for the dictionary on
$DATA.SALES:
48> VOLUME $data.sales
49> DDL DICT
!?DDL newsrc !
!OUTPUT *.
!EXIT
List and edit the schema in NEWSRC. When the schema is in its final form, run the
DDL compiler to produce a new dictionary:
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, you could enter the
command:
51> DDL/IN newsrc/DICT $data.newsales
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.
50> DDL/IN newsrc/DICT $data.sales !
Use ! to clear old dictionary before
writing to it
VST1008.vsd