Hai friends
why we need to read a file before re-write a record?
Answer Posted / ravi patnam
1) When you want to modify a record, first you have to get
that into memory from physical file by the way of reading.
2)Then do modifications.
3)After the modification over again put it bak to the
physical file by using 'Rewrite' command.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
What are the cobol coding sheets?
How do define dynamic array in cobol.
what happens if parmparameter passes zero bytes to the 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 various section in data division and briefly explain them.
What is the LINKAGE SECTION used in COBOL?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
For rewrite, why is it mandatory that file needs to be opened?
What is the difference between Call and a Link?
How do you reference the fixed block file formats from cobol programs
In COBOL programming, what is PERFORM? What is VARYING?
What are 77 levels used for?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?