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
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Which division and paragraphs are mandatory for a COBOL program?
What guidelines should be followed to write a structured cobol prgm?
how to refer the data field?
In which area will you utilize 88 level items in cobol?
Why did you choose to work with ibm mainframe cobol programming?
What is difference between static and dynamic call in cobol?
How do define dynamic array in cobol.
What is the compute verb? How is it used?
Write the code to count the sum of n natural numbers.
What is report-item in COBOL?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is amode(31)
How many bytes S(8) comp field occupy and its maximum value?
IF I mention stop run in CICS what happens?