T.R | Title | User | Personal Name | Date | Lines |
---|
1314.1 | | QUARK::LIONEL | Free advice is worth every cent | Fri May 23 1997 11:38 | 6 |
| What does the second program do after opening the file?
If the second program writes anything to the file and then closes it, the
file will be truncated at that point.
Steve
|
1314.2 | No write done | AUBER::COSTEUX | Le Plat Pays qui est le mien... | Fri May 23 1997 11:57 | 8 |
| Steve
The second program can have closed the file while the first program is
running but he never writes into it.
I've suggested the customer to add the Read-Only option while opening
the file in the second program. I'll have more news next Monday...
Jean-Pierre
|
1314.3 | | QUARK::LIONEL | Free advice is worth every cent | Fri May 23 1997 12:03 | 7 |
| I think that if the second program closes the file, as long as it has opened
it for write access, RMS will truncate the file at the current position.
You can turn this off by either opening READONLY (the best way), or by
supplying a USEROPEN routine which turns off FAB$V_TEF before opening the
file.
Steve
|
1314.4 | READONLY option solves the problem. | PADKOA::COSTEUX | Le Plat Pays qui est le mien... | Mon May 26 1997 10:13 | 3 |
| Specifying READONLY in the second program OPEN statement solves the
problem.
|