Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2476


What are declaratives and what are their uses in cobol?

1205


how do you define single dimensional array and multidimensional array in your cobol?

1111


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

1352


What is cobol?

1240


what is the use of outrecord?

2223


In COBOL programming, what is PERFORM? What is VARYING?

1152


What are the different rules for performing sort operation?

1228


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.

4174


Why did you choose to work with ibm mainframe cobol programming?

1115


Discuss about changing dataset name in proc.

1239


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

2555


What are literals?

1141


What is the difference between comp and comp-3?

1189


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

2592