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
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?
What is the difference between binary search and sequential search?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how do you reference the printer file formats from cobol programs
Give some examples of command terminators?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Describe the cobol database components?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
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 ......
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.
How do you define a variable of comp-1 and comp-2?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
how do you reference the fixed unblock file formats from cobol programs
Explain the configuration section of a cobol program with examples of syntax.