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
What is amode(31)
What is the difference between Global and External Variables?
How you can read the file from bottom?
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.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
what is amode(24), amode(31), rmode(24) and rmode(any)?
Can we redefine the field of x(200) to less than 200?
How do u write test cases?
Which division and paragraphs are mandatory for a COBOL program?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Write a program to explain size error.
Can we change the password using ALTER? anyone tried and changed?
What is the difference between next sentence and continue in cobol programing language?
what is the use of outrecord?
What are declaratives and what are their uses in cobol?