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

consider the following piece of code 01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

10 Answers   TCS,


If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.

3 Answers   CTS,


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas

3 Answers   IBM,


Difference between cobol and cobol-ii?

0 Answers  






Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

0 Answers   IBM,


What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?

2 Answers   T systems,


What are the cobol coding sheets?

0 Answers  


what is the use of filler in cobol programing?

4 Answers   MAT,


What is the difference between external and global variables in COBOL?

0 Answers   Winsol Solutions,


01 A pic 9(100) find record length of it

6 Answers   TCS,


Categories