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
cobol program for generate a eb bill

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

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

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 Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

RULES FOR OCCURS CLAUSE: The rules apply for the OCCURS clause and the subscripts are as shown below. (1) The integer in the OCCURS clause should be a positive integer.

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE DIVISION.