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
, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

MERGE VERB WITH OUTPUT PROCEDURE: Like the sort verb, the merge verb can also have an output procedure. The syntax of the MERGE verb is as shown below:   The r

Illustration of Subtract verb: (a) SUBTRACT A FROM B. This illustration means that the value of A will be subtracted from the value of B and the subtracted result will be s

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

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

CLOSE statement: The simplified syntax of the CLOSE statement is as shown below:   CLOSE          file-name-1   [WITH   LOCK   ]                         [  , file-

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 f

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