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
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...