Path: utzoo!utgpu!attcan!uunet!husc6!psuvax1!rutgers!ucsd!nosc!helios.ee.lbl.gov!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: Multiple-access files in VMS? Message-ID: <880801042149.f37@CitHex.Caltech.Edu> Date: 1 Aug 88 11:28:36 GMT References: <1391@csun.UUCP> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 18 > 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