Rewrite statement - indexed files, COBOL Programming


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 specific, the value of the record key of the record being replaced should be equal to that of the record last from this file.

The INVALID KEY condition occurs in the cases as shown below:

(i) Whenever the record key does not match that of an existing record in the file.

(ii) For the SEQUENTIAL access, whenever the value of the record key is not similar to that of the last record read from the file. 



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

Related Discussions:- Rewrite statement - indexed files, Assignment Help, Ask Question on Rewrite statement - indexed files, Get Answer, Expert's Help, Rewrite statement - indexed files Discussions

Write discussion on Rewrite statement - indexed 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


FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

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

Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

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

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

I need help with a COBOL programming assingment. I have started the program but I need help completing the program. I have 5 errors. Here is the question. 10. Suppose your company

Record Description for the Variable-length Records: When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 f