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 the difference between binary search and sequential search?
i need a small 3d program using inline and outline.
Name the sections present in data division.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the problem of ordered sequential files access?
Give some examples of command terminators?
IF I mention stop run in CICS what happens?
Why would you use find and get rather than to obtain?
Explain the configuration section of a cobol program with examples of syntax.
) how do u code after getting data?
What are the rules of the move verb?
how do you reference the esds vsam file formats from cobol programs
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
In which area will you utilize 88 level items in cobol?