From: CSBVAX::MRGATE!info-vax-RELAY@KL.SRI.COM@SMTP 3-AUG-1988 10:34 To: ARISIA::EVERHART Subj: Re: Multiple-access files in VMS? Received: from CitHex.Caltech.Edu by KL.SRI.COM with TCP; Mon, 1 Aug 88 04:28:45 PDT Date: Mon, 1 Aug 88 04:28:36 PDT From: carl@CitHex.Caltech.Edu (Carl J Lydick) Message-Id: <880801042149.f37@CitHex.Caltech.Edu> Subject: Re: Multiple-access files in VMS? In-Reply-To: Your message <1391@csun.UUCP> dated 26-Jul-1988 To: sm.unisys.com!csun!mst@cs.utexas.edu, info-vax@CitHex.Caltech.Edu > Does anyone out there know how to make a file multi-accessible (readwise) > in VMS? There must be a way since I would think that the help file is that > way. Any help is appreciated. I take it you mean you want several processes to be able to read the file simultaneously. This is not an attribute of the file; it depends on how you open the file. The following three examples show you how to do it in three of the most commonly used high-level languages. In FORTRAN: OPEN(UNIT=1,FILE='TEST.DAT',SHARED,READONLY,STATUS='OLD') In C: #include file int fd; fd = open("TEST.DAT", O_RDONLY, 0777, "shr=get"); In DCL: $ open/read/share=read file test.dat