Data Description Entry (↑ Statements)
◄Key► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Construct: Data Description Entry
Function: Reserves and names an area of memory for storing an
item of data, and describes the data to be stored
there.
Syntax: Which format? Data-name ◄RENAMES►
◄Condition-name► ◄Constant-name►
►►───level-number─┬───────────┬──────────────────────────────────►
├─data-name─┤
└─FILLER────┘
►─┬───────────────────────┬──────────────────────────────────────►
└─REDEFINES data-name-2─┘
►─┬──────────────┬─┬────────────┬────────────────────────────────►
└┬──┬─EXTERNAL─┘ └┬──┬─GLOBAL─┘
└IS┘ └IS┘
►─┬─────────────────────────┬───┬──────────────────────┬─────────►
└─BLANK─┬────┬─┬─ZERO───┬─┘ └┬─JUSTIFIED─┬─┬─────┬─┘
└WHEN┘ ├─ZEROS──┤ └─JUST──────┘ └RIGHT┘
└─ZEROES─┘
►┬──────────────────────────────────────────────────────────────────────►1
└─OCCURS┬─integer-2─┬─────┬───────────────────────────────────────────┬►2
│ └TIMES┘ │
└┬──────────────┬─integer-2─┬─────┬─DEPENDING─┬──┬data-name-3─┘
└─integer-1 TO─┘ └TIMES┘ └ON┘
1►──────────────────────────────────────────────────────────────────────┬►
┌─────────────────────────────────────┐ │
▼ │ │
2►┬─────────────────────────────────────┬─┬────────────────────────────┬┘
│ ┌──────────┐│ │ ┌───────────┐ │
│ ▼ ││ │ ▼ │ │
└┬─ASCENDING──┬─┬───┬┬──┬─data-name-2─┘ └─INDEXED─┬──┬─index-name-1──┘
└─DESCENDING─┘ └KEY┘└IS┘ └BY┘
►─┬──────────────────────────────────┬───────────────────────────►
└┬─PICTURE─┬─┬──┬─character-string─┘
└─PIC─────┘ └IS┘
►─┬─────────────────────────────────────────────────┬────────────►
└┬──────────┬─┬─LEADING──┬─┬─────────────────────┬┘
└─SIGN─┬──┬┘ └─TRAILING─┘ └─SEPARATE─┬─────────┬┘
└IS┘ └CHARACTER┘
►─┬───────────────────────────┬──────────────────────────────────►
└┬─SYNCHRONIZED─┬─┬───────┬─┘
└─SYNC─────────┘ ├─LEFT──┤
└─RIGHT─┘
►─┬─────────────────────────────────────┬────────────────────────►
└┬────────────┬─┬─BINARY────────────┬─┘
└─USAGE─┬──┬─┘ ├─COMPUTATIONAL─────┤
└IS┘ ├─COMP──────────────┤
├─COMPUTATIONAL-1───┤
├─COMP-1────────────┤
├─COMPUTATIONAL-2───┤
├─COMP-2────────────┤
├─COMPUTATIONAL-3───┤
├─COMP-3────────────┤
├─COMPUTATIONAL-4───┤
├─COMP-4────────────┤
├─COMPUTATIONAL-5───┤
├─COMP-5────────────┤
├─COMPUTATIONAL-X───┤
├─COMP-X────────────┤
├─DISPLAY───────────┤
├─DISPLAY-1─────────┤
├─INDEX─────────────┤
├─PACKED-DECIMAL────┤
├─POINTER───────────┤
└─PROCEDURE-POINTER─┘
►─┬────────────────────┬──. ─────────────────────────────────────►◄
└─VALUE─┬──┬─literal─┘
└IS┘
-♦-