Indexed tables, COBOL Programming

INDEXED TABLES:

The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as subscripts to specify table elements. These data item is termed as index. The illustration below describes the table description with the INDEXED phrase.

2322_INDEXED TABLES.png

The reference to an element of this table can be completed as YEAR (F1, D1, Y1) having set suitable values to the index names F1, D1 and Y1.

The common form of the INDEXED   phrase is as shown below:

INDEXED BY index-name-1 [, index-name-2]...

The OCCURS clause with an INDEXED phrase takes the form as shown below:

1952_INDEXED TABLES1.png

Posted Date: 10/18/2012 1:46:24 AM | Location : United States







Related Discussions:- Indexed tables, Assignment Help, Ask Question on Indexed tables, Get Answer, Expert's Help, Indexed tables Discussions

Write discussion on Indexed tables
Your posts are moderated
Related Questions
PROGRAMS FOR REDEFINES CLAUSE: We have to write a simple program to explain the REDEFINES clause at 01 level. identification division. program- id. Redef. environment

can we move spaces to numeric field

Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

single program how may when statement has used

ARITHMETIC VERBS: Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to pe

READ STATEMENT: The aim of this verb is to make available the next logical record from the input file. It is important to note the meaning of the "next" logical record in the

Introduction to MOVE Verb: The aim of this section is to introduce the learner how to move data from one place to the other place in the memory. This is completed with the help

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file

Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a