Rules of read statements, COBOL Programming

Rules of read statements:

The next record is identified according to the rules as shown below:

(i) Whenever the READ NEXT statement is the initial statement to be executed after the open statement on the file, the next record is the initial record of the file.

(ii) Whenever the execution of the READ NEXT statement follows the execution of the other READ statement on similar file (format 2 or format 3), the next record is the record following the one previously read.             

(iii) Whenever the execution of the READ NEXT statement follows the execution of the start statement.

 

 

Posted Date: 10/17/2012 8:14:21 AM | Location : United States







Related Discussions:- Rules of read statements, Assignment Help, Ask Question on Rules of read statements, Get Answer, Expert's Help, Rules of read statements Discussions

Write discussion on Rules of read statements
Your posts are moderated
Related Questions
Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma

STATEMENTS FOR SEQUENTIAL FILES: A basic operation on a file includes the reading and writing of its records. Whenever the file is sequential, there are three verbs for the

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

Format for COBOL Programs: The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler transla


Illustration of Search verb: To illustrate the other use of SEARCH verb, assume we wish to search the similar tab to find the number of persons whose deposited amount is more

FILE-CONTROL paragraph for the indexed files: The common format for the SELECT clause for a file is as shown below: SELECT  file-name  ASSIGN   TO  implementor -name

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia