The Layout Definition Utility uses the repetition level (Lv) column
and the repetitions (Repeat) column to communicate repeating groups of items, usually defined in COBOL OCCURS clauses.
The Layout Definition Utility only displays elementary items. To indicate that a group of items is repeated, the utility inserts a repetitive definition line immediately before the repeating group. This line only contains a level number and a repetition count.
The repetition level indicates the level of nesting of repeating groups. The repetitions column indicates the number of times the group is repeated. The level number is incremented in the line after the repetition line.
The utility supports up to 7 levels of repetition nesting.
(Example) Group Item option is "Hidden". see COBOL Library Analysis Option
| Data
description in COBOL |
01
ABC-REC.
03
ITEM1 PIC
X(10).
03
GROUP1.
05
ITEM2 PIC
X(3).
05
ITEM3 PIC
X(1).
03
GROUP2 OCCURS
10.
05
ITEM4 PIC
X(5).
05
ITEM5 PIC
X(5).
05
GROUP2-1 OCCURS
5.
07 ITEM6
PIC 9(2).
05
ITEM7 PIC
X(2).
03
ITEM8 PIC
X(20).
03
ITEM9 OCCURS
5 PIC X(8).
03
ITEM10 PIC
X. |
|
| Hierarchy |
Number of repetitions |
Item Name |
| 0 |
|
ITEM1 |
| 0 |
|
ITEM2 |
| 0 |
|
ITEM3 |
| 0 |
10 |
|
| 1 |
|
ITEM4 |
| 1 |
|
ITEM5 |
| 1 |
5 |
|
| 2 |
|
ITEM6 |
| 1 |
|
ITEM7 |
| 0 |
|
ITEM8 |
| 0 |
5 |
|
| 1 |
|
ITEM9 |
| 0 |
|
ITEM10 |
|
|