Write statement - indexed files, COBOL Programming


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

PROGRAM FOR RENAMES CLAUSE: identification division. program- id. environment division. data division. working-storage section. 01 emp.      02 empdet.


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:

SIMPLE MERGE VERB: Like sorting, the merging of files is often required in different commercial application. It is likely to merge two or more files with the help of one MERGE

PROGRAM FOR SCREEN SECTION:  identification division.   program- id.   environment division.   data division.   working-storage section.   01  a pic 9(2) value

OPEN STATEMENT: Whenever a READ or a WRITE operation is executed on a file, then it should be open. The opening of a file may be completed with the help of the OPEN verb. With

Can u please let me know how can i use SSA''s in IMS while fetching segments. Thanks, Rajesh

Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de

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