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

1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5758


What is the difference between binary search and sequential search?

1043


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1053


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1060


how do you reference the printer file formats from cobol programs

1138


Give some examples of command terminators?

1195


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1448


Describe the cobol database components?

1125


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

1177


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

12182


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2394


How do you define a variable of comp-1 and comp-2?

1135


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1032


how do you reference the fixed unblock file formats from cobol programs

1172


Explain the configuration section of a cobol program with examples of syntax.

1122