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

how do u link sub pgm to main pgm ?

2 Answers   TCS,


how to change picture class of copy book variable inside program?

2 Answers  


How can we pass data from cobol to JCl?

7 Answers   ADP, Amdocs, IBM,


What are options have been removed in COBOL 11?

1 Answers  


Why there is no questions in this column?

6 Answers  






What is the maximum length of a field you can define using COMP-3?

4 Answers   Complex System, Infosys,


How to retain the Duplicates in the one records?

3 Answers   CS,


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

3 Answers   IBM,


what is meaning by design document? who can repared for this?

5 Answers   TCS,


What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.

2 Answers  


how do u list the abended jobs?

1 Answers   IBM,


Can JUSTIFIED be used for all the data types?

3 Answers  


Categories