Dictionary Manipulation Statements
Data Definition Language (DDL) Reference Manual — 426798-002
8 -9
OUTPUT UPDATE Statement
•
The DDL compiler generates the following sections of source code for each object
specified in the OUTPUT UPDATE statement:
°
First section
DELETE statements to delete any objects that directly or indirectly refer to the
specified object.
°
Second section
A statement to redefine the specified object.
°
Third and following sections
One section for each statement needed to rebuild the objects deleted in the
first section
−
those objects that refer to the specified object.
•
To update a specified object, close the DDL source-update file and edit the second
section of the file to make the changes you want to the object definition. Then, use
the SOURCE command to compile the entire DDL source-update file.
•
To delete a specified object, close the DDL source-update file and use the
SOURCE command to compile only the first section. This instructs the DDL
compiler to delete all referring objects. Then use a DELETE statement to delete the
specified object.
OUTPUT UPDATE Statement Examples
Assume your dictionary contains the objects defined in the database schema from
Appendix B, and that you want to change the size of the ZIP-CD definition from 5 to 9
digits. Because other definitions and records refer either directly or indirectly to ZIP-
CD, you cannot simply change its definition.
To change the definition of ZIP-CD and the records and definitions that refer to it, you
would use OUTPUT UPDATE as follows:
20> DDL dict
!?DDL myfile
!OUTPUT UPDATE zip-cd.
!?NODDL
!?EDIT myfile
.
.
.
*EXIT
!?SOURCE myfile
Run DDL and open the dictionary in the current subvolume
Open a DDL source file
Write update source to MYFILE
Close MYFILE before editing it
Change the definition for ZIP-CD
Exit from the Editor
Compile the contents of MYFILE into the dictionary
VST807.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 ...