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

Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


What is the Purpose of Pointer in the string?

0 Answers  


S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


What does the IS NUMERIC clause establish ?

2 Answers  


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  






If a sub program is called from mainprogram.I have opened cursor in main program and Fetch the result in subprogram ,Is it possible ?If yes please tell me the reason.

1 Answers  


What is Static,Dynamic linking ?

2 Answers  


what is the meaning of pic 9(09)v99-

4 Answers   HSBC,


How to know whether the module is dynamical or statistical?

0 Answers  


what will happen if pass values more than 100 using PARM parameter?

1 Answers  


Which mode is used to operate the sequential file?

0 Answers  


How to covert given string into ASCII value in COBOL/MF COBOL

3 Answers   CTS, IBM, iFlex,


Categories