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 are the pertinent COBOL

2036


IF I mention stop run in CICS what happens?

1887


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1643


What is the difference between Global and External Variables?

657


What are 77 levels used for?

653






What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

671


How arrays can be defined in COBOL?

659


What are the different data types in cobol?

785


what is search and searchall?what is the diffrence between them?give an best example?

5538


What is the compute verb? How is it used?

651


Can a Search can be done on a table with or without Index?

798


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2718


For rewrite, why is it mandatory that file needs to be opened?

616


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2051


How do we get current date from system with century in COBOL?

793