Sample Schemas
Data Definition Language (DDL) Reference Manual — 426798-002
B- 5
Database Schema Listing
DEFINITION suppinfo.
02 suppnum TYPE *.
02 suppname TYPE name.
02 addr TYPE *.
END
* Definition for REGION Record
DEFINITION reginfo.
02 regnum TYPE *.
02 regname PIC X(12).
02 location PIC X(14).
02 manager TYPE empnum
HEADING manager-heading.
END
* Definition for BRANCH Record
DEF branchinfo.
02 primkey.
03 regnum TYPE *.
03 branchnum TYPE *.
02 branchname PIC X(14).
02 manager TYPE empnum
HEADING manager-heading.
END
* Definition for EMPLOYEE Record
DEFINITION empinfo.
02 empnum TYPE *.
02 empname TYPE name.
02 dept.
03 regnum TYPE *.
03 branchnum TYPE *.
02 job PIC X(12).
02 age PIC 9(2).
02 salary PIC 9(6).
02 vacation PIC 9(2).
END
!***************************************************************
! FILE DEFINITIONS
!***************************************************************
* Contains customer information for each customer
RECORD customer.
FILE IS "$data.sales.customer"KEY-SEQUENCED
AUDIT
MAXEXTENTS 100.
DEFINITION IS custinfo.
KEY IS customer.custnum DUPLICATES NOT ALLOWED.
KEY "cn" IS customer.custname.
END
* Contains order information for each order
RECORD orders.
FILE IS "$data.sales.orders"KEY-SEQUENCED
AUDIT