Sample Schemas
Data Definition Language (DDL) Reference Manual — 426798-002
B- 4
Database Schema Listing
UPSHIFT.
02 midinit PIC X(2)
UPSHIFT.
END
DEFINITION addr.
02 address PIC X(22).
02 city PIC X(14).
02 state PIC X(2)
HELP "Enter 2-character
code".
02 zip TYPE zip-cd.
END
DEFINITION mdy-date. DISPLAY mdy-date-display
HELP "Enter date as:"
"mm/dd/yy".
02 month PIC 99
MUST BE 1 THRU 12.
02 day-of-month PIC 99
MUST BE 1 THRU 31.
02 year PIC 99.
END
!***************************************************************
! RECORD DEFINITIONS
!***************************************************************
* Definition for CUSTOMER Record
DEFINITION custinfo.
02 custnum TYPE *.
02 custname TYPE name.
02 addr TYPE *.
END
* Definition for ORDERS Record
DEFINITION orderinfo.
02 ordernum TYPE *.
02 orderdate TYPE mdy-date.
02 deldate TYPE mdy-date.
02 salesperson TYPE empnum
HEADING salesperson-heading.
02 custnum TYPE *.
END
* Definition for PARTS Record
DEFINITION partsinfo.
02 partnum TYPE *.
02 partname TYPE name.
02 inventory PIC 9(3)S.
02 location PIC X(3).
02 price PIC 9(6)V9(2).
END
* Definition for SUPPLIER Record