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?

Answers were Sorted based on User's Feedback



If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read ..

Answer / ameins

It will read three consecutive records.

Is This Answer Correct ?    12 Yes 2 No

If we put three reads in COBOL in the same para one after the other, to read a PS file,will it read ..

Answer / ??????

It will read the same record three times.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy

13 Answers   HSBC,


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.

0 Answers   Infosys,


without performing any operations on a file how can i know whether it contains data or not

2 Answers  


Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.

12 Answers  






What is Static,Dynamic linking ?

2 Answers  


in the TIME parameter we r giving hours r minutes

4 Answers   IBM,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above

5 Answers   TCS,


How to Write the RESTART Logic Using COBOL?

4 Answers   GalaxE, L&T, Syntel, TCS,


can any one help -s806

6 Answers  


Categories