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
PROGRAM FOR CONDITION NAMES: We have to write a simple program to demonstrate Condition names usage.  identification division.   program- id.   environment division.

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

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:

READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s

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

Column and Field in COBOL program: In COBOL there are 2 types of entries termed as margin A and margin B entries. The Margin A entries start from the column 8, 9, 10 or 11 and

OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.

/ (Slash Insertion): The edit character slash (/) also termed as virgule or stroke, may appear anyplace in the picture. When used, it will be inserted. More than one slash can

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