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
ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:

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

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

PROGRAM FOR PERFORM - VARYING: We have to write a program to elaborate PERFORM ...VARYING Identification division. Program- id. PerfVary. Environment division. Dat

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.

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

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

I uploaded a file from PC to Mainframe, variable LRCL 256. In my COBOL program I defined it as FD INPUT-FILE LABEL RECORDS ARE OMITTED BLOCK CONTAINS 0 RECORDING MODE