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 happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


What is the size of s9(19)comp3? explain

8 Answers  


if a dataset is already created with fixed length but after that i want to change fixed length to variable length then how is it possible

3 Answers   IBM,


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,


77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......

8 Answers  






What is comp-1 and comp-2?

0 Answers  


What R 2 of the common forms of the EVALUATE STATEMENT ?

1 Answers   Cap Gemini,


Suppose i want to declare a binary comp fild of 7 byte .how to write?

6 Answers   IBM,


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

0 Answers  


With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?

4 Answers   IBM,


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


where will we code call by content and call by reference dude pls reply soon ?

2 Answers  


Categories