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
Example of read statement: Illustration: READ OLD-MASTER AT END MOVE ZERO TO END-OF-RECORDS. As a result of this statement, generally the next record from the OLD-MAST

REWRITE STATEMENT: As in the situation of a relative file, the REWRITE statement needs that the file should be opened in the I-O mode, and if the SEQENTIAL access mode is spec

SPECIAL-NAMES: This paragraph is used to associate some hardware names to the user-specified mnemonic names. This paragraph is elective in all compilers. The format of this pa

Common form of the READ statements: Format 1 is the common form of the READ statements. Format 2 is used when the access mode is either random or dynamic. For illustration,

Illustration of Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

Introduction to MOVE Verb: The aim of this section is to introduce the learner how to move data from one place to the other place in the memory. This is completed with the help

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

DELETE STATEMENT : The file should be opened in the I-O mode. If the access is SEQUENTIAL, the INVALID KEY phrase must be specified. Rather than, the last input-output state

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