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?
Write some characteristics of cobol as means of business language.
Can a Search can be done on a table with or without Index?
What are 77 levels used for?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Can we redefine the field of x(200) to less than 200?
What are the different rules of SORT operation?
Explain how to differentiate call by context by comparing it to other calls?
What type of SDLC u followed? Why?
What is the utilization of copybook in cobol?
What is a scope terminator give example?
Which Search verb is equivalent to PERFORM…VARYING?
Name the divisions, which are available in a cobol program?
how to refer the data field?
i need a small 3d program using inline and outline.