Yes.
If you are going to change most of the records on a file you normally open file 1, read it until the end and write file 2, then, in the operating system language, delete file 1 and rename file 2.
REWRITE is a verb for changing indexed files, either on-line or if you want to change just a few records. You could have an on-line transaction that rewrote the same record thousands of times in a day.
2006-08-07 04:07:52
·
answer #1
·
answered by Anonymous
·
1⤊
0⤋
If you are looking for COBOL lessons - this will cost you.
I would need to understand what you are trying to accomplish. In COBOL there is enough flexibility to achieve a desired result by more than one means. That is what makes the difference between a programmer and a super programmer! I was the master at this .
2006-08-07 03:13:10
·
answer #2
·
answered by worriedaboutyou 4
·
0⤊
0⤋
It does all depend on the type of file.
You can read a file multiple times as long as you CLOSE and then re-OPEN the file.
This is for a sequential file.
Given that you are updating the file then it is probably a keyed file. In this case the file can be read multiple times if the SEARCH command is used.
2006-08-07 02:59:54
·
answer #3
·
answered by AnalProgrammer 7
·
0⤊
0⤋
you could always make some extra storage space and move the data there and when you need it copy it again. You could probably set up an if statement to show if user_name = samy davis --move the data to the print area.
2006-08-07 02:26:59
·
answer #4
·
answered by coolbiker 3
·
0⤊
0⤋