Composite
Enhanced Definition
In mainframe computing, a **composite** entity refers to an item, structure, or identifier that is formed by combining two or more distinct, simpler components. This concept is fundamental in defining complex data structures in programming languages like COBOL and establishing unique identifiers or access paths in database systems like DB2 or IMS.
Key Characteristics
-
- Multi-component Nature: Always consists of multiple individual parts, which together form a single logical unit.
- Hierarchical Structure (COBOL): In COBOL, a
GROUPitem is a composite data item that contains otherGROUPitems orELEMENTARYitems, forming a hierarchy (e.g.,01 CUSTOMER-RECORD,05 CUSTOMER-NAME, etc.). - Unique Identification (Databases): A composite key in DB2 or IMS is a primary or unique key made up of two or more columns (or fields in IMS) whose combined values uniquely identify a row or segment.
- Optimized Access (Databases): A composite index is built on multiple columns, allowing the database manager to efficiently locate data based on criteria involving those columns.
- Logical Grouping: Facilitates the organization of related data elements into a cohesive unit for processing or storage, improving data integrity and readability.
Use Cases
-
- COBOL Record Definition: Defining a
CUSTOMER-RECORDas aGROUPitem composed ofCUSTOMER-ID,CUSTOMER-NAME, andCUSTOMER-ADDRESS(which itself might be aGROUPitem for street, city, state). - DB2 Primary Key: Creating a primary key for an
ORDER_DETAILtable using a combination ofORDER_IDandITEM_NUMBERto uniquely identify each line item within a specific order. - IMS Segment Key: Defining a unique key for a child segment (e.g.,
COURSE-ENROLLMENT) in an IMS database by concatenating fields from its parentSTUDENTsegment and its ownCOURSE-IDfield. - DB2 Index for Query Optimization: Building a composite index on
LAST_NAMEandFIRST_NAMEcolumns in anEMPLOYEEtable to speed up queries that filter or sort by both names.
- COBOL Record Definition: Defining a
Related Concepts
The concept of composite is closely related to data structures in programming, where GROUP items (COBOL) allow for the logical organization of elementary data. In database management systems, it underpins database design principles, particularly in the definition of PRIMARY KEY, UNIQUE KEY, and INDEX structures. It
Related Products
Related Vendors
ABA
3 products
ASE
3 products
Tone Software
14 products
IBM
646 products
Applied Software
7 products
Trax Softworks
3 products
Related Categories
Operating System
154 products
Automation
222 products
Databases
211 products
Transactions
29 products