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 condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

Example of Nested if statement: Illustration: Consider the following sentence The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marke

Floating Insertion   The currency symbol ($) can emerge in multiples on the left-hand side of the picture. In this situation the character will be treated in similar way as t

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.

PERFORM WITH UNTIL OPTION: The format is as shown below: Illustration:  A) Perform p-3 until i > 5. Here p-3 will be executed whenever i B)  Perform p-2 thru

Currency Sign - edit characters for numeric data: $ (Currency Sign): The single currency sign can appear at the leftmost place of a picture. In that situation the $ cha

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

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

WRITE STATEMENT: The records are written to be logical place as determined from the value of the record key. The INVALID KEY condition occurs in the cases shown below: (i)