If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read the same record thrice or it will read three records sequentially?

For example :
Input File
01
02
03

Para 900
Read infile
Display Infile rec
Read infile
Display infile rec
Read infile
Display infile rec.

What will be the output?

Answer Posted / ameins

It will read three consecutive records.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is amode(31)

724


What is the difference between Global and External Variables?

666


How you can read the file from bottom?

660


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

825






what is amode(24), amode(31), rmode(24) and rmode(any)?

705


Can we redefine the field of x(200) to less than 200?

820


How do u write test cases?

1639


Which division and paragraphs are mandatory for a COBOL program?

710


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


Write a program to explain size error.

677


Can we change the password using ALTER? anyone tried and changed?

1549


What is the difference between next sentence and continue in cobol programing language?

712


what is the use of outrecord?

1772


What are declaratives and what are their uses in cobol?

714