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
INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

PROGRAM FOR CONDITION NAMES: We have to write a simple program to demonstrate Condition names usage.  identification division.   program- id.   environment division.

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.

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-

Edit Characters for Numeric Data: The characters below can be used in the PICTURE clause to indicate the editing.   Z    *  $  -    +    CR    DB    .    ,    B    O    /

Illustration of nested if statement: Consider the nested sentence which is as shown below: The IF-ELSE pairs in this sentence can be detected by applying the rule whic

DELETE STATEMENT: The format of the delete statement is as shown below: DELETE   file-name RECORD   [  ;   INVALID   KEY  imperative-statement  ] Whenever the ACCESS MOD

Non numeric: The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum

Example of Level numbers - cobol programming: To explain the hierarchical structure introduced above, the concept of the level number is employed in COBOL. The most broad