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
PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

PROGRAM FOR IF -ELSE: We have to write a program to check whether the given number is ODD or EVEN. You can use IF..ELSE. Identification division. Program- id. IfElse.

WRITE STATEMENT: The WRITE Statement verb releases a record in an output file. The syntax for the WRITE statement can be unlike depending on the output device and the medium us

OCCURS - INDEXED BY PROGRAM: identification division. program- id. searching. environment division. data division. working-storage section. 01 table1.      0

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb

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

Concept of a two-dimensional table: Concept of a two-dimensional table can be easily extended to tables having three or more dimensions. The Handling of tables up to three dim

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

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

RESERVE clause: This clause indicates the number of buffers to be used for the file. Integer-1 specifies this number. ORGANIZATION/ACCESS clause: These two clause