Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!cernvax!paul From: paul@cernvax.UUCP Newsgroups: comp.os.vms Subject: One writer/Many Readers on a text file - The Answer Message-ID: <531@cernvax.UUCP> Date: Fri, 28-Aug-87 11:52:02 EDT Article-I.D.: cernvax.531 Posted: Fri Aug 28 11:52:02 1987 Date-Received: Tue, 1-Sep-87 05:41:47 EDT Reply-To: paul@cernvax.UUCP () Organization: CERN European Laboratory for Particle Physics, CH-1211 Geneva, Switzerland Lines: 49 Last December I submitted a query to mod.computers.vax re 1 writer/many readers on a text file. You will recall I wanted to TYPE the file, even though it was still being written. With FDL I managed to get beyond "file currently locked by another user" , but still the DCL TYPE command saw only an empty file. It turns out that the DCL TYPE command is at fault. I presume TYPE was written many moons ago before they thought of file sharing (possibly even before they thought of FDL). If you write your own little "type" command which opens the file for reading and quote the necessary FDL, it all works a dream. This is what I did: The one writer opens the file with the following FDL: IDENT "24-AUG-1987 10:52:18 VAX-11 FDL Editor" ACCESS PUT yes SHARING GET yes PROHIBIT no PUT no The (possibly many) readers open with: IDENT "21-AUG-1987 17:51:47 VAX-11 FDL Editor" ACCESS GET yes SHARING GET yes PROHIBIT no PUT yes Hope this helps you. Paul Burkimsher Cern, CH-1211 Geneve 23, Switzerland paul@crvxdev.bitnet paul@cernvax.uucp