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─┬──┬┬─data-name-4┬─┬────────────────────┬─┬─┘
│ └IS┘└─literal-1──┘ │ │ │
│ ┌───────────┘ │ │
│ └─data-name-5─┬──┬─┬─data-name-6─┤ │
│ └IS┘ └─literal-2───┘ │
└─FILE-ID─┬──┬─┬─data-name-7─┬──────────────────────────┘
└IS┘ └─literal-2───┘
►─┬────────────────────────────────────┬────────────────────────────────►
│ ┌──────────┐ │
│ ▼ │ │
└─DATA─┬─RECORD─┬──┬──┬─data-name-8──┘
│ └IS┘ │
└─RECORDS─┬───┬┘
└ARE┘
►┬───────────────────────────────────────────────────────────────────────►1
└─LINAGE─┬──┬┬─data-name-9─┬─┬─────┬┬──────────────────────────────────┬►2
└IS┘└─integer-8───┘ └LINES┘└┬────┬─FOOTING─┬──┬┬─data-name-10─┤
└WITH┘ └AT┘└─integer-9────┘
1►───────────────────────────────────────────────────────────────────────┬►
2►┬────────────────────────────────┬┬───────────────────────────────────┬┘
└┬─────┬┬──┬─TOP─┬─data-name-11─┬┘└┬─────┬┬──┬─BOTTOM─┬─data-name-12─┬┘
└LINES┘└AT┘ └─integer-10───┘ └LINES┘└AT┘ └─integer-11───┘
►─┬────────────────────────────────┬────────────────────────────────────►
└─RECORDING─┬───────┬┬─F────────┬┘
└MODE IS┘├─V────────┤
├─U────────┤
├─S────────┤
├─FIXED────┤
└─VARIABLE─┘
►─┬─────────────────────────────┬───────────────────────────────────────►
└─CODE-SET─┬──┬─alphabet-name─┘
└IS┘
►────. ───►◄
-♦-