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
Answer Posted / shan
b.REC-1 and W-REC contain same data
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the compute verb? How is it used?
Explain how you can characterize tables in cobol?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are the different open modes available in cobol?
Mention the guidelines to write a structured cobol program?
how do you reference the variable block file formats from cobol programs
What is Pic 9v99 Indicates in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
Write a program to explain size error.
Which division and paragraphs are mandatory for a COBOL program?
Write a program to enter and display the names of students in a class using the occurs clause.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there