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
STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

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:

BLOCK CONTAINS CLAUSE: Integer -1 of the BLOCK CONTAINS clause indicates the block size either in terms of records or in terms of characters. For illustration, BLOCK CONTAINS

Major difference between file and array how does record read from array and file why we are not preparing array for real time

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-

How do I move a single QUOTE to a field or set the value clause? "''" does not work?

ACCEPT STATEMENT: The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

File Activity: The file activity is a measure of the proportion of records processed during an update run. Therefore we define the activity ration as shown below. Activi

Example of Redefines clause: This illustration describes a sales record that may either contain the total amount of sale or the quantity (QTY) and UNIT-PRICE. The aim of such