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 / ??????

It will read the same record three times.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cobol?

740


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

817


What are the different rules to perform a Search?

613


Write a cobol program making use of the redefine clause.

725


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2656






What is the difference between Call and a Link?

694


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1228


) what is the difference between AID and HANDLE AID?

1630


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

637


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

654


Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2331


Name the divisions, which are available in a cobol program?

681


Explain how you can characterize tables in cobol?

636


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

740


how to refer the data field?

1802