consider the following
FD FILE-1
01 REC-1 PIC X(80)
......
WORKING-STORAGE SECTION
01 W-REC PIC X(90)
........
PROCEDURE DIVISION
FIRST-PARA
.......
READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG
which of the following is true with respect to the above?
a.REC-1 will contain nothing and W-REC will contain the
contains of the
record read
b.REC-1 and W-REC contain the same data
c.syntex is invalid and error will occur
d.REC-1 and W-REC must be of same size



consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAG..

Answer / shan

b.REC-1 and W-REC contain same data

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More COBOL Interview Questions

What are 77 levels used for?

0 Answers  


Can we use redefine clause in occurs clause?

10 Answers  


What is the default value of DISP parameter?

3 Answers   IBM,


What are the different data types in cobol?

0 Answers  


which one is the best of com and com-3.using of real time ?

7 Answers   Cap Gemini,






what is meant by binary search?

4 Answers  


What are the various section in data division and briefly explain them.

0 Answers  


PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted?

5 Answers   TCS,


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

5 Answers   IBM,


what is Pic 9v99 Indicates?

2 Answers  


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

0 Answers  


Categories