Rewrite statement - indexed files, COBOL Programming

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 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
RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

What is the difference between subscript and index

PROGRAM FOR COMPUTE VERB: We have to write an easy program to elaborate the COMPUTE verb.  Identification division. Program- id. compverb. Environment division. Da

IF STATEMENT: The easiest form of the IF statement is  IF condition-1 statement-1 where the condition-1 may be any one from the shown below. When the condition-1

RULES OF REDEFINES CLAUSE The rules shown below govern the use of the REDEFINES clause: (i) The level-number of data-name-1 and data-name-2 should be identical. (ii) Exce

Comparing features of oracle rdbms with Mysql

COMPUTE VERB: The COMPUTE verb is very powerful. All the evaluations performed by the other 4 verbs can also be completed easily by using the COMPUTE verb. Its normal format i

GO TO, STOP RUN: The GO TO verb is used to completely transfer the control to elsewhere in the program. Its form is as shown below: GO TO procedure-name As a result o

VALUE CLAUSE: The value clause defines the preliminary value of the data item. Normally initialization will be completed just before the first statement in the procedure di

PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie