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
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

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

DIVIDE VERB: The aim of the DIVIDE verb is to divide one number by the other and to store the result.  There are few forms of this verb. One of its forms is as shown below:

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

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.

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene

What is the difference between subscript and index

PROGRAM FOR IF -ELSE: We have to write a program to check whether the given number is ODD or EVEN. You can use IF..ELSE. Identification division. Program- id. IfElse.

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-

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