Dictionary Manipulation Statements
Data Definition Language (DDL) Reference Manual — 426798-002
8 -3
DELETE Statement
references, in which, for example, object B refers to object A and object C refers to
object A by referring to object B.
DELETE Statement Examples
The following example shows how to delete a record interactively:
The following shows how to delete a definition called ZIP-CD that is referenced by two
other definitions (ADDR and CUSTINFO), one of which (ADDR) is referenced by two
records (CUSTOMER and SUPPLIER):
As shown in the following example, you can enter this code interactively (as in the first
example) or you can place the code in a source file and use the SOURCE command to
pass the code to the DDL compiler:
The following shows how to delete an SPI token type that is referenced by two SPI
token codes, first delete the token codes:
06> VOLUME $spi.tokens
07> DDL DICT
!DELETE TOKEN-CODE assn-tkn-my-status, assn-tkn-stat-reply.
!DELETE TOKEN-TYPE assn-typ-status.
!EXIT
03> VOLUME $data.sales
04> DDL
!?DICT
!DELETE RECORD employee .
!EXIT
Go to subvolume with dictionary
Run DDL compiler
Open dictionary
Delete record
VST801.vsd
!?DICT $data.sales
!DELETE RECORD customer supplier .
!DELETE DEF addr custinfo .
!DELETE DEF zip-cd .
Open dictionary in its subvolume
Delete two records that refer to ADDR
Delete two definitions that refer to ZIP-CD
Now delete ZIP-CD
VST802.vsd
05> DDL
!?SOURCE del-file
!EXIT
Execute DICT command and
DELETE statements in DEL-FILE
VST803.vsd