cobol1.hlp (Topic list)
File Description Entry (↑ Statements)
 Key                                       Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Construct:    File Description Entry (FD)
   See also:    Sort-Merge File Description Entry
 
  Function:     Gives further details of a file (in addition to the
                information in the File-Control paragraph) and begins
                the descriptions of its record layouts.
 
  Syntax:       Which format?  Sequential   Relative & Indexed
                               Report File
 
  ───FD file-name-1─┬──────────────┬─┬────────────┬─────────────────────
                      └┬──┬─EXTERNAL─┘ └┬──┬─GLOBAL─┘
                       └IS┘             └IS┘
 
  ─┬────────────────────────────────────────────────────────────┬────────
    └─BLOCK─┬────────┬─┬──────────────┬─integer-2─┬─CHARACTERS─┬─┘
            └CONTAINS┘ └─integer-1 TO─┘           └─RECORDS────┘
 
  ┬─────────────────────────────────────────────────────────────────────┬1
   └─RECORD─┬┬────────┬─integer-3─┬──────────┬───────────────────────────┤
            │└CONTAINS┘           └CHARACTERS┘                           │
            ├┬────────┬─integer-4 TO integer-5─┬──────────┬──────────────┘
            │└CONTAINS┘                        └CHARACTERS┘
            └┬──┬─VARYING─┬──┬┬────┬──────────────────────────────────────2
             └IS┘         └IN┘└SIZE┘
 
 1─────────────────────────────────────────────────────────────────────┬─
 2┬───────────────────────────────────────────────┬─┬─────────────────┬┘
   └┬─────────────────┬┬──────────────┬┬──────────┬┘ │                 │
    └┬────┬─integer-6─┘└─TO integer-7─┘└CHARACTERS┘  │                 │
     └FROM┘                               ┌──────────┘                 │
                                          └─DEPENDING─┬──┬─data-name-1─┘
                                                      └ON┘
 
  ─┬─────────────────────────────────────────┬───────────────────────────
    └─LABEL─┬─RECORD─┬──┬──┬─┬─STANDARD─────┬─┘
            │        └IS┘  │ ├─OMITTED──────┤
            └─RECORDS─┬───┬┘ │ ┌──────────┐ │
                      └ARE┘  │ ▼          │ │
                             └─data-name-2──┘
 
 
  ─┬─────────────────────────────────────────────┬───────────────────────
    │            ┌────────────────────────────┐   │
    │            ▼                            │   │
    └─VALUE OF─┬─data-name-3 IS─┬─data-name-4─┬─┬─┘
               │                └─literal-1───┘ │
               └─FILE-ID─┬──┬─┬─data-name-5─┬───┘
                         └IS┘ └─literal-2───┘
 
  ─┬────────────────────────────────────┬────────────────────────────────
    │                       ┌──────────┐ │
    │                       ▼          │ │
    └─DATA─┬─RECORD─┬──┬──┬─data-name-6──┘
           │        └IS┘  │
           └─RECORDS─┬───┬┘
                     └ARE┘
 
  ─┬────────────────────────────────┬────────────────────────────────────
    └─RECORDING─┬───────┬┬─F────────┬┘
                └MODE IS┘├─V────────┤
                         ├─U────────┤
                         ├─S────────┤
                         ├─FIXED────┤
                         └─VARIABLE─┘
 
  ─┬─────────────────────────────┬───────────────────────────────────────
    └─CODE-SET─┬──┬─alphabet-name─┘
               └IS┘
 
  ────. ───
                                    -♦-