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
PROGRAM FOR ELECTRICITY BILL: An electricity company supplies electricity to 4 types of customers coded 1, 2, 3 & 4.The rate schedule for customers is shown in one table as

INPUT AND OUTPUT PROCEDURE IN SORT STATEMENT: The common format of the SORT statement can write as shown below: The format of the RELEASE statement is as shown be

PROGRAM FOR SUBTRACT VERB: We have to write a simple program to elaborate the SUBTRACT verb. You can also use edit characters in the program. Identification division. Pr

Group Item as Operand in the Relational Condition: Whenever an operand of a relational condition is the group item, the item is then considered to be an alphanumeric field. Th

Minus sign - edit characters for numeric data: The minus sign can appear either at the leftmost or rightmost location of the picture. If an item is negative, a minus sign will

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

calculate simple interest

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi