Write statement - indexed files, COBOL Programming

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) When a try is made to write a record beyond the externally defined boundaries of the file.

(ii) Whenever the file is opened in the OUTPUT mode and the value of the record key is not bigger than the value of the record key for the earlier record written.

(iii) When the value of the record key is equivalent to the record key of a record key already present in the file. 

 

 

Posted Date: 10/17/2012 8:41:32 AM | Location : United States







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

Write discussion on Write statement - indexed files
Your posts are moderated
Related Questions
THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

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.

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

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

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

SUBTRACT VERB: The SUBTRACT verb is used to subtract one, or the sum of two or more numbers from one or more numbers and to store the result. The form of the SUBTRACT verb

Evaluate is like a case statement & Evaluate  stamenet can be used to replace nested Ifs. The difference b/w EVALUATE and case is that there is no 'break' is required for EVALUATE

calculate simple interest

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

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