[comp.os.vms] One writer/Many Readers on a text file - The Answer

paul@cernvax.UUCP (08/28/87)

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