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 a binary search and a sequential search? What are the pertinent cobol commands?
What are the different types of condition in cobol and write their forms.
Write a program that uses move corresponding.
In which area will you utilize 88 level items in cobol?
How do you get the data to code the BMS macro?
Explain how you can characterize tables in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Have you used comp and comp-3 in your project? And how?
How you can read the file from bottom?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Explain what you understand by passing by value.
What is the difference between Call and a Link?
what happens if parmparameter passes zero bytes to the program
What is cobol?
Define cobol?