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
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are declaratives and what are their uses in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is cobol?
what is the use of outrecord?
In COBOL programming, what is PERFORM? What is VARYING?
What are the different rules for performing sort operation?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Why did you choose to work with ibm mainframe cobol programming?
Discuss about changing dataset name in proc.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
What are literals?
What is the difference between comp and comp-3?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic