HP DDL D40 Reference Manual page 219

Data definition language
Table of Contents

Advertisement

Dictionary Manipulation Statements
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:
03> VOLUME $data.sales
04> DDL
!?DICT
!DELETE RECORD employee .
!EXIT
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):
!?DICT $data.sales
!DELETE RECORD customer supplier .
!DELETE DEF addr custinfo .
!DELETE DEF zip-cd .
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:
05> DDL
!?SOURCE del-file
!EXIT
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
Data Definition Language (DDL) Reference Manual—426798-002
Go to subvolume with dictionary
Run DDL compiler
Open dictionary
Delete record
VST801.vsd
Open dictionary in its subvolume
Delete two records that refer to ADDR
Delete two definitions that refer to ZIP-CD
Now delete ZIP-CD
Execute DICT command and
DELETE statements in DEL-FILE
8 -3
DELETE Statement
VST802.vsd
VST803.vsd

Advertisement

Table of Contents
loading

Table of Contents