Dictionary Manipulation Statements
Data Definition Language (DDL) Reference Manual — 426798-002
8- 12
SHOW USE OF Statement
•
If you want to modify or delete a referenced object, you can use the SHOW USE
OF statement to list all references to the object you plan to modify or delete.
Generally, however, you should use OUTPUT UPDATE to make such changes.
•
SHOW USE OF generates a listing that shows which objects use the specified
objects. Objects can refer to other objects as follows:
°
Constants can refer to other constants.
°
Definitions can refer to other definitions and to constants.
°
Records can refer to constants and definitions.
°
Token types can refer to constants and definitions.
°
Token codes can refer to token types.
°
Token maps can refer to constants and definitions.
Objects can refer only to constants, definitions, and token types. So, you can
specify only constants, definitions, or token types in a SHOW USE OF statement.
•
The SHOW USE OF listing includes a number to indicate the nesting level of the
objects it displays. Any objects that refer directly to a specified object are at nesting
level 1; any objects that refer directly to an object at level 1 are at nesting level 2;
and so forth.
•
If more than one object refers to a specified object, the listing is sequenced first by
the order in which objects are specified in the SHOW USE OF statement, second
by the order in which referring objects are in the dictionary, and third by the
nesting level.
SHOW USE OF Statement Examples
To illustrate the SHOW USE OF nesting levels, the following statement displays all the
objects that refer to the definition ZIP-CD. For the definition of ZIP-CD and the objects
that refer to it, see the sample schema in
Appendix B, Sample Schemas
.
When DDL compiles the SHOW USE OF statement, it issues the following listing:
(1) Definition ZIP-CD used by Definition ADDR
(2) Definition ADDR used by Definition CUSTINFO
(3) Definition CUSTINFO used by Record CUSTOMER
(2) Definition ADDR used by Definition SUPPINFO
(3) Definition SUPPINFO used by Record SUPPLIER
The numbers on the left of the listing show the level of nesting for the referring item.
!?DICT
!SHOW USE OF DEF zip-cd.
The dictionary must be
open
VST810.vsd