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
PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

There are some restrictions when these procedures are used. (i) The Procedure should not contain any SORT/MERGE statement. (ii) An explicit transfer of the control outside

PROGRAM FOR INVENTORY  We have to write a program to update the inventory file. Consider 2 files,viz, invfile an tranfile. Invfile has 3 fields pno,name,qty. Tranfile has 3 fil

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co

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

Example of Special-names: Consider the illustration: Let the SPECIAL-NAMES paragraph be as shown: SPECIAL-NAMES. CHANNEL 1 IS PAGE-TOP. The Channel is related with the t

How do I move a single QUOTE to a field or set the value clause? "''" does not work?

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

Block Size: The normal practice is to group a number of consecutive records to form that is termed as a block or a physical record. The number of records in a block is frequen

ADD and SUBTRACT CORRESPONDING: The CORRESPONDING option can also used with the ADD and SUBTRACT verbs. The following are some of the formats of these verbs with the CORRESPON