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 is the Purpose of POINTER Phrase in STRING command in COBOL?

0 Answers   Winsol Solutions,


How do u know what version of cobol u are using?

3 Answers  


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

2 Answers  


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,






I have a COBOL main program which is calling sub program, the number of calling parameters used in main program are 4 whereas in sub program it's 5. Sub program is passing 5 parameters back to main program Will there be any compilation error? Or main program parameters displays junk values?

1 Answers  


how can you identify wheather the program is using search or search all in the cobol program?

5 Answers   iGate,


How can you add a particular field in copybook?

2 Answers   L&T,


in cobol perform stmt whether it first checks the condition or not

9 Answers  


How do you get the data to code the BMS macro?

0 Answers   IBM,


What is the difference between Structured COBOL Programming and Object Oriented COBOL ?

1 Answers  


01 var1 pic s9(9)v99. 01 var2 pic x(30). procedure division. move 12345.99 to var1. move12345.99 to var2. display var1. display var2. what is the output?

2 Answers   IBM,


Categories