Presentation is loading. Please wait.

Presentation is loading. Please wait.

Advanced Tables.. 01 JeansTable. One Dimension Table.

Similar presentations


Presentation on theme: "Advanced Tables.. 01 JeansTable. One Dimension Table."— Presentation transcript:

1 Advanced Tables.

2 01 JeansTable. One Dimension Table.

3 JeansTable. 02 Province OCCURS 4 TIMES. 03 SalesValue PIC 9(8)V NumSold PIC 9(7).

4 One Dimension Table JeansTable. 02 Province OCCURS 4 TIMES. 03 SalesValue PIC 9(8)V NumSold PIC 9(7). Province SalesValue NumSold

5 Two Dimension Table JeansTable. 02 Province OCCURS 4 TIMES.

6 Two Dimension Table JeansTable. 02 Province OCCURS 4 TIMES. 03 Gender OCCURS 2 TIMES. 04 SalesValue PIC 9(8)V NumSold PIC 9(7)

7 Three Dimension Table JeansTable. 02 Province OCCURS 4 TIMES.

8 Three Dimension Table JeansTable. 02 Province OCCURS 4 TIMES. 03 Gender OCCURS 2 TIMES

9 Three Dimension Table JeansTable. 02 Province OCCURS 4 TIMES. 03 Gender OCCURS 2 TIMES. 04 Colour OCCURS 3 TIMES

10 Three Dimension Table JeansTable. 02 Province OCCURS 4 TIMES. 03 Gender OCCURS 2 TIMES. 04 Colour OCCURS 3 TIMES. 05 SalesValue PIC 9(8)V NumSold PIC 9(7) Colour SalesValue NumSold

11 Record Elements. 01 JeansTable. 02 Province OCCURS 4 TIMES. 03 ProviceTotal PIC 9(8). 03 Gender OCCURS 2 TIMES. 04 Colour OCCURS 3 TIMES. 05 SalesValue PIC 9(8)V NumSold PIC 9(7)

12 The Redefines Clause. 01 Rates RatePIC 99V RateREDEFINES10RatePIC 999V RateREDEFINES10RatePIC 9999V Rate s.

13 The Redefines Clause. 01 Rates RatePIC 99V RateREDEFINES10RatePIC 999V RateREDEFINES10RatePIC 9999V Rate s.

14 The Redefines Clause. 01 Rates RatePIC 99V RateREDEFINES10RatePIC 999V RateREDEFINES10RatePIC 9999V Rate s.

15 The Redefines Clause. 01 HoldDate. 02 EuroDate. 03 EuroDay PIC EuroMonth PIC EuroYear PIC 9(4). 02 USDate REDEFINES EuroDate. 03 USMonth PIC USDay PIC USYear PIC 9(4) EuroDate EuroDay EuroMonth EuroYear USDay USMonth USYear USDate HoldDate

16 Creating Pre-filled Tables 01 LetterTable. 02 TableValues.

17 Creating Pre-filled Tables A B C D E F G H I J K L 01 LetterTable. 02 TableValues. 03 FILLER PIC X(13) VALUE "ABCDEFGHIJKLM". 03 FILLER PIC X(13) VALUE "NOPQRSTUVWXYZ".

18 Creating Pre-filled Tables A B C D E F G H I J K L 01 LetterTable. 02 TableValues. 03 FILLER PIC X(13) VALUE "ABCDEFGHIJKLM". 03 FILLER PIC X(13) VALUE "NOPQRSTUVWXYZ". 02 FILLER REDEFINES TableValues. 03 Letter PIC X OCCURS 26 TIMES. 02 FILLER REDEFINES TableValues. 03 Letter PIC X OCCURS 26 TIMES.

19 Two Dimension Table of Values. 01 BonusTable. 02 BonusValues. 03 FILLER PIC X(24) VALUE " "

20 Two Dimension Table of Values BonusTable. 02 BonusValues. 03 FILLER PIC X(24) VALUE " ". 02 FILLER REDEFINES BonusValues. 03 Province OCCURS 4 TIMES

21 Two Dimension Table of Values BonusTable. 02 BonusValues. 03 FILLER PIC X(24) VALUE " ". 02 FILLER REDEFINES BonusValues. 03 Province OCCURS 4 TIMES. 04 Bonus OCCURS 3 TIMES PIC

22 COBOL 85 Table Changes.  Creating pre-filled tables without the REDEFINES clause. 01DayTable VALUE "MonTueWedThrFriSatSun". 02 Day OCCURS 7 TIMES PIC X(3).  Initializing Tables with values. 01 TaxTable. 02 County OCCURS 32 TIMES. 03 CountyTax PIC 9(5) VALUE ZEROS. 03 CountyName PIC X(12) VALUE SPACES.


Download ppt "Advanced Tables.. 01 JeansTable. One Dimension Table."

Similar presentations


Ads by Google