cobol1.hlp (Topic list)
Data Division (↑ Statements)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Construct:    Data Division
 
  Function:     Defines the data that the program is to accept as
                input, work on internally, or produce as output.
 
  Syntax:
 
  ───DATA DIVISION.────
 
  ─┬───────────────────────────────────────────────────────────────────1
    └─FILE SECTION. ────────────────────────────────────────────────────2
 
 1───────────────────────────────────────────────────────────────────┬─
        ┌────────────────────────────────────────────────────────────┐│
        ▼                                                            ││
 2─────┬────────────────────────────────────────────────────────────┬┘
        │                        ┌───────────────────────┐           │
        │                        ▼                       │           │
        ├─file-description-entry record-description-entry────────────┤
        │                                   ┌───────────────────────┐│
        │                                   ▼                       ││
        ├─sort-merge-file-description-entry record-description-entry─┤
        └─report-file-description-entry──────────────────────────────┘
 
  ─┬───────────────────────────────────────────────────────────┬───────
    │                           ┌─────────────────────────────┐ │
    │                           ▼                             │ │
    └─WORKING-STORAGE SECTION. ─┬─────────────────────────────┬─┘
                                ├─record-description-entry────┤
                                └─data-item-description-entry─┘
 
  ─┬─────────────────────────────────────────────────────────┬──
    │                         ┌─────────────────────────────┐ │
    │                         ▼                             │ │
    └─LOCAL-STORAGE SECTION. ─┬─────────────────────────────┬─┘
                              ├─record-description-entry────┤
                              └─data-item-description-entry─┘
 
  ─┬───────────────────────────────────────────────────┬───────────────
    │                   ┌─────────────────────────────┐ │
    │                   ▼                             │ │
    └─LINKAGE SECTION. ─┬─────────────────────────────┬─┘
                        ├─record-description-entry────┤
                        └─data-item-description-entry─┘
 
  ─┬───────────────────────────────────────────────────────────────────1
    └─COMMUNICATION SECTION. ───────────────────────────────────────────2
 
 1───────────────────────────────────────────────────────────────────┬─
          ┌──────────────────────────────────────────────────────────┐│
          ▼                                                          ││
 2───────┬──────────────────────────────────────────────────────────┬┘
          │                                 ┌───────────────────────┐│
          │                                 ▼                       ││
          └─communication-description-entry record-description-entry─┘
 
  ─┬───────────────────────────────────────────────────────────────────1
    └─REPORT SECTION. ──────────────────────────────────────────────────2
 
 1───────────────────────────────────────────────────────────────────┬─
          ┌──────────────────────────────────────────────────────────┐│
          ▼                                                          ││
 2───────┬──────────────────────────────────────────────────────────┬┘
          │                                 ┌───────────────────────┐│
          │                                 ▼                       ││
          └─report-description-entry report-group-description-entry──┘
 
  ─┬─────────────────────────────────────────────────────┬─────────────
    │                  ┌────────────────────────────────┐ │
    │                  ▼                                │ │
    └─SCREEN SECTION. ─┬────────────────────────────────┬─┘
                       └─screen-description-entry───────┘
                                    -♦-