01 Schuhbestand.
05 Groesse OCCURS 5 TIMES INDEXED BY Gro-Index.
10 Schuhe OCCURS 4 TIMES INDEXED BY Schuh-Index.
15 Schuh-Groesse PIC 9(2).
15 Schuh-Nr PIC 9(4).
15 Schuhname PIC X(10).
15 Schuhpreis PIC 9(3)V99.
:
01 Bestandliste.
05 Bestand-Groesse PIC 9(2).
05 Bestand-Nr PIC 9(4).
05 Bestandname PIC X(10).
05 Bestandpreis PIC 9(3)V99.
:
:
:
SET Gro-Index TO 2.
SET Schuh-Index TO 3.
:
MOVE Schuhe (Gro-Index, Schuh-Index) TO Bestandliste.
|
:
:
SET Gro-Index TO 2.
SET Schuh-Index TO 3.
:
MOVE Schuhe (Gro-Index + 1, Schuh-Index - 1) TO Bestandliste.
|