issue with multiple INDEXES in OCCURS definition
Given a definition of:
01 ATAB-MAX PIC 9(3) EXTERNAL.
01 ATAB EXTERNAL.
03 STAB OCCURS 0 TO 700 TIMES
DEPENDING ON ATAB-MAX
ASCENDING KEY IS SA
INDEXED BY I-IND-S
I-IND
I-IND2
I-IND3.
05 TAB-ELEMENT.
07 SA PIC X(03).
07 INIT PIC X(01).
cp /p only prints I-IND-S
but should print all (directly under each other below ATAB
).
checking with cp /d
shows that all following indexes are below the previous one (as if it would be their parent).