01 Schuhe. 05 Schuh OCCURS 20 INDEXED BY Schuh-Index. 10 Schuh-Gr PIC 99. 10 Schuh-Farbe PIC X(10). 10 Schuh-Preis PIC 999V99. : : : SET Schuh-Index TO 1. SEARCH Schuh WHEN Schuh-Gr (Schuh-Index) = 45 DISPLAY Schuh-Preis (Schuh-Index). |
: : SET Schuh-Index TO 1. SEARCH Schuh AT END PERFORM Bestellung , WHEN Schuh-Gr (Schuh-Index) = 45 DISPLAY Schuh-Preis (Schuh-Index). |
01 Schuhe. 05 Schuh OCCURS 200 INDEXED BY Schuh-Index. 10 Schuh-Gr PIC 99. 10 Schuh-Farbe PIC X(10). 10 Schuh-Preis PIC 999V99. 01 Materialien. 05 Material OCCURS 200 INDEXED BY Mat-Index. 10 Sohle PIC X(15). 10 Innen PIC X(15). 10 Obermat PIC X(15). : : : SET Schuh-Index TO 1. SEARCH Schuh VARYING Mat-Index AT END PERFORM Bestellung WHEN Schuh-Gr (Schuh-Index) = 45 DISPLAY Schuh-Preis (Schuh-Index), Obermat (Mat-Index). |
01 Schuhe. 05 Schuh OCCURS 200 ASCENDING KEY Schuh-Gr INDEXED BY Schuh-Index. 10 Schuh-Gr PIC 99. 10 Schuh-Farbe PIC X(10). 10 Schuh-Preis PIC 999V99. |
01 Schuhe. 05 Schuh OCCURS 200 INDEXED BY Schuh-Index. 10 Schuh-Gr PIC 99. 10 Schuh-Farbe PIC X(10). 10 Schuh-Preis PIC 999V99. : : : SEARCH ALL Schuh AT END PERFORM Bestellung WHEN Schuh-Gr (Schuh-Index) = 45 DISPLAY Schuh-Preis (Schuh-Index). |