Data Definition Language (DDL) Reference Manual
Dictionary-Manipulation Statements
Data Definition Language (DDL) Reference Manual—529431-004
8-10
OUTPUT UPDATE
Example 8-11 on page 8-10 deletes the constant mdy-date-display and all the
objects that refer to that constant.
?Section CUSTOMER.
Record CUSTOMER.
File is "$data.sales.customer" Key-sequenced.
Audit.
Definition is CUSTINFO.
Key is CUSTNUM duplicates not allowed.
Key "cn" is CUSTNAME.
End.
?Section SUPPLIER.
Record SUPPLIER.
File is "$data.sales.supplier" Key-sequenced.
Audit.
Definition is SUPPINFO.
Key is SUPPNUM duplicates not allowed.
Key "su" is SUPPNAME.
End.
Note. The order in which the objects are deleted and added is important. Any other order can
cause the DDL compiler to issue an error message.
Example 8-11. OUTPUT UPDATE Deleting a Constant and Objects That Refer to
It
20>DDL dict
!?DDL ddlout
!OUTPUT UPDATE CONSTANT mdy-date-display.
!?NODDL
!?SOURCE ddlout (mdy-date-display-deletes)
Execute DELETE statements
generated by OUTPUT UPDATE
statement
!DELETE CONSTANT mdy-date-display
Delete mdy-date-display
!EXIT
Example 8-10. Contents of myfile After Example 8-9 on page 8-9 (page 2 of 2)