Illustration of indexed tables, COBOL Programming

Illustration of indexed tables:

Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are defined like data names in the DATA DIVISION with USAGE IS INDEX clause. Note that former we explained only the DISPLAY and COMPUTATIONAL usages. Index is other kind of usage. An index name defined with INDEX usage must not have any picture clause in the entry.

For illustration, the entry

77  I  USAGE  IS  INDEX

defines the index I.

The indexes defined with the usage INDEX are termed as index data items. They are functionally similar to the indexes defined through the INDEXED phrase with the exception that when an index name is defined with the USAGE IS INDEX phrase, the similar index name can be used for subscripts in more than one table or in more than one level of table.

 

Posted Date: 10/18/2012 1:54:14 AM | Location : United States







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

Write discussion on Illustration of indexed tables
Your posts are moderated
Related Questions
PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :


Data Division: The Data Division is a part of the COBOL program where every data item processed by the program is described. It is very important to note that unless a data

PERFORM WITH VARYING OPTION: The format is as shown below:

Environment Division: The Environment Division is the second division in the COBOL source program. It is mainly machine-dependent . The computer and all the peripheral dev

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

OPEN STATEMENT: Whenever a READ or a WRITE operation is executed on a file, then it should be open. The opening of a file may be completed with the help of the OPEN verb. With

Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic