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
Illustration of Multiply verb: (a)  MULTIPLY A BY B. In this situation the value of A & B will be multiplied and the product will be stored in B.  The decimal point locatio

READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

Introduction to MOVE Verb: The aim of this section is to introduce the learner how to move data from one place to the other place in the memory. This is completed with the help


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

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

UPDATING OF THE RELATIVE AND INDEXED FILES: The Sequential files are updated by creating a new master file from an existing old master file and a transaction file. Such an Upda

Example of Level numbers - cobol programming: To explain the hierarchical structure introduced above, the concept of the level number is employed in COBOL. The most broad

Character Set: To study any language, first one should know the alphabets of the language and they are termed as character set in general. There are 50 different characters in