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
CLOSE statement: The simplified syntax of the CLOSE statement is as shown below:   CLOSE          file-name-1   [WITH   LOCK   ]                         [  , file-

ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum.  The ADD verb takes any one of the two forms as shown below:

PROGRAM TO DEMONSTRATE SORT VERB: The file for which a record having 2 fields, viz., Account Number and Name is already available. Sort the file based on the ascending order o

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

PROGRAM FOR MULTIPLY VERB: We have to write a simple program to elaborate MULTIPLY verb. You can also use the edit characters in the program. Identification division. Pr

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

RULES OF MOVE VERB:  The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to

Direct Organization: Besides the relative or indexed organization, also a direct access file can be designed to have what is termed as direct organization.  In this organizati

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can