Hai friends
why we need to read a file before re-write a record?
Answer Posted / mf buzz
Hi,
For Rewrite, the file has to be opened in I-O mode. REWRITE
is used to update records. Rewrite statement will update
the last read record. Hence, we have to read the record to
be updated first. Hope this clarifies.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
what are decleratives in cobol?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is report-item in COBOL?
What is the difference between structured cobol programming and object alternativelyiented cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between comp and comp-3?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What are the pertinent COBOL
Write a program that uses move corresponding.
What are the access modes of START statement?
Which is not true about evaluate statement
) what is the difference between AID and HANDLE AID?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.