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 do you get the data to code the BMS macro?
What is perform what is varying?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
how to access the file from prodution from changeman tool and to submit a file to production
What is the utilization of copybook in cobol?
How do you differentiate between cobol and cobol-ii?
what is search and searchall?what is the diffrence between them?give an best example?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Discuss about changing dataset name in proc.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
how do you reference the variable unblock file formats from cobol programs
What is length is cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
how do you reference the esds vsam file formats from cobol programs