Indexed sequential files, COBOL Programming

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 addition, some of the index tables are also created and maintained with the file.

An indexed file on COBOL can be accessed either sequential or randomly. Though, while creating an indexed file the records can be written only sequentially and in the ascending order of the key. Whenever an indexed file is accessed randomly, the series in which the records are accessed is controlled by the programmer by specifying the value of the data item known as record key.

The Indexed files in a COBOL program can be handled through appropriate special codes in the FILE-CONTROL paragraph and in the PROCEDURE DIVISION.

 

Posted Date: 10/17/2012 8:25:10 AM | Location : United States







Related Discussions:- Indexed sequential files, Assignment Help, Ask Question on Indexed sequential files, Get Answer, Expert's Help, Indexed sequential files Discussions

Write discussion on Indexed sequential files
Your posts are moderated
Related Questions
COBOL Words: The COBOL word can be formed by using the characters as shown below: 0-9 A-Z (a-z) - (hyphen) The rules below should be hold in forming the COBOL words.

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

PROGRAM FOR ADD VERB: We have to write a simple program to elaborate the ADD verb. You can also use edit characters in the program. Identification division. Program- id.

Rules for constructing an Arithmetic Expression: The rules for constructing an arithmetic expression are as shown below: (i) When an arithmetic expression specifies a calcu

Illustration of perform statement: PERFORM    CALCUALTE-TAX. In this illustration, the CALCULATE-TAX is either a section name or paragraph name. Assume that it is a section

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu

PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

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.

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T