Advanced Tables.. 01 JeansTable. One Dimension Table.

Slides:



Advertisements
Similar presentations
Tables1 TABLES (chp. 12) group of storage locations (i.e. elements) with the same name accessed by name and subscript ex. var-name (sub) similar to arrays.
Advertisements

Chapter 12 Array Processing and Table Handling. Defining Series of Input Fields Coding record with 24 independent hourly fields is cumbersome 01Temp-Rec.
Typography. Type Classifications 1. Black Letter (Manuscript, Old English) 2. Roman or Serif (Old Style, Transitional, Modern) 3. Sans Serif 4. Slab Serif.
Let's learn the alphabet ! ABCDEFGHIJKLM NOPQRSTUVWXYZ.
Program COBOL-2. *TABLE DATA EMBEDDED FOR REDEFINES OF TABLE BELOW ************************************************* 01 TABLE-WORK-AREA. 05 PT-SUB.
Conditions.. IF Syntax.   Simple Conditions l Relation Conditions l Class Conditions l Sign Conditions   Complex Conditions   Condition Names 
P449. p450 Figure 15-1 p451 Figure 15-2 p453 Figure 15-2a p453.
1 times table 2 times table 3 times table 4 times table 5 times table
Dictionary A template for an electronic dictionary.
Two and three dimension tables Please use speaker notes for additional information!
Advanced Sequential Files 1.. Single Record Type Files  In a file which contains only one record type (the kind we have examined so far) the record structure.
12-1 Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout John.
Converting COBOL Data to SQL Data: GDT-ETL Part 1.
PowerPoint Presentation: Richard H. Baum, Ph.D. DeVry Institute of Technology 9th Edition Structured COBOL Programming Nancy Stern Hofstra University Robert.
12- 1 Chapter 12.  Single-Level OCCURS Clauses  Processing Data Stored in Array  Using OCCURS Clause for Table Handling  Use of SEARCH Statement 
Elements Elements of the Periodic Table Periodic Table of Elements.
Introduction to Tables/Arrays Please use the speaker notes for additional information. Tables/Arrays.
1 Itemfield - Automating Complex COBOL Integration Next-Generation Data Transformation Rami Hadadi
Agenda Reporting Work on Assignment 4! Printing on power systems.
Author: Takdir, S.ST. © Sekolah Tinggi Ilmu Statistik.
The DATA DIVISION Chapter 3. COBOL Data Organization Field - group of characters forming a meaningful unit or basic fact –Characters in a name or digits.
Printing on power systems Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File.
COBOL Basics 2. H E N N E S S Y R M L M F Group Items/Records StudentDetails WORKING-STORAGE SECTION. 01StudentDetailsPIC X(26).
Module 2 Defining Data Revised Defining Data All definitions of data for COBOL takes place in the DATA DIVISION. All data defined are visible to.
1 Chapter – 12 Table Lookups Table Codes –Expanded Values –Types of Codes Numeric Alphabetic Alphanumeric.
Edit Programs Please use speaker notes for additional information. Example: payedit.cbl payedit.cbl.
Searching Tables.. Creating Pre-filled Tables A B C D E F G H I J K L ABCDEFGHIJKLM NOPQRSTUVWXYZ 01 LetterTable. 02 TableValues. 03 FILLER PIC X(13)
Average Atomic Mass.
More Syntax in COBOL  Moving Data  Selection Statements  System Date  Indicators in Display files.
The science that deals with the materials of the universe and the changes that these materials undergo.
12- 1 Chapter 12.  Single-Level OCCURS Clauses  Processing Data Stored in Array  Using OCCURS Clause for Table Handling  Use of SEARCH Statement 
Any Questions!. Test Coming Up! Agenda Printing with Externally Described Printer Files Arrays.
1 Chapter 13 - Mutlilevel Tables System Concepts –User View of tables one dimension view two dimension view three dimension view.
1 Review for test 2 Chapters 7, 8, 9, 11, What is wrong with the following paragraphs? PARA-A. PARA-B. ADD A TO B MOVE 0 TO X PERFROM PARA-A PERFORM.
Fact Table The fact table stores business events. The attributes explain the conditions of the entity at the time the business event happened.
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Applying Metrics for Welding Correct & Incorrect Metric Expressions Copyright © Texas Education Agency, All rights reserved.
Analysis of SAMPLE1.CBL Please check speaker notes for additional information!
CHEMICAL INTERACTIONS INVESTIGATION 2: ELEMENTS. KEY CONCEPTS AN ELEMENT IS A BASIC SUBSTANCE THAT CANNOT BE BROKEN INTO SIMPLER SUBSTANCES DURING CHEMICAL.
1 90 students in a school have visited at least two other provinces. If this represents 24% of the students in the school, how many students are in the.
Tables Learning Support
Any Questions! 2 Agenda Moving data Arithmetic Verbs Compute statement.
Random update Please use speaker notes for additional information!
1 Web Search/Thinkin g What is the periodic table? What do the letters stand for? What do the numbers mean? 2 Image Search/Thinkin g What is an.
ELEMENTS. Elements pure substance that cannot be separated into simpler substance by physical or chemical means. 1.
Tables In COBOL An Introduction
Applying Metrics for Welding
Submitting Instructions on web site CS 1024 students Read guide
Multiplication table. x
Tables and PERFORM..VARYING
More About COBOL Tables
Screen I/O ACCEPT DISPLAY Relevant to the Fujitsu Compiler.
Times Tables.
YEARBOOK CONCEPT.
Lettering on Maps (Type)
Chapter 3 The DATA DIVISION.
Graphic Communication
Introduction to Matrices
Lesson One – Position, distance and Displacement
Pixels.
What is dimension?.
Minidimension Example
Introduction to Sets.
Guess the letter!.
Theorems about LINEAR MAPPINGS.
4 + (-5) = A. Start at zero B. Move ______ spaces ___________ to get to the first number. C. From there, move _____ spaces __________ D. My final answer.
Any Questions?.
The multiples of Delete this text and write about what you notice:
3 times tables.
6 times tables.
Presentation transcript:

Advanced Tables.

01 JeansTable. One Dimension Table.

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

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

Two Dimension Table JeansTable. 02 Province OCCURS 4 TIMES.

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

Three Dimension Table JeansTable. 02 Province OCCURS 4 TIMES.

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

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

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

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)

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

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

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

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

Creating Pre-filled Tables 01 LetterTable. 02 TableValues.

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".

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.

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

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

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

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.