From: CSBVAX::MRGATE!RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP 8-AUG-1988 12:49 To: ARISIA::EVERHART Subj: Re: Multiple-access files in VMS Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Mon, 8 AUG 88 06:36:30 PDT Received: from CUNYVM.CUNY.EDU by KL.SRI.COM with TCP; Mon, 8 Aug 88 06:23:46 PDT Received: from ISUMVS.BITNET by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with BSMTP id 8594; Mon, 08 Aug 88 09:22:51 EDT Date: Mon, 8 Aug 88 08:23:44 CDT To: From: "John Hascall" Subject: Re: Multiple-access files in VMS > Date: Mon, 1 Aug 88 14:12:09 EST > From: "Richard B. Gilbert" > Subject: Multiple-access files in VMS > Comments: To: Mike Temkin > > Mike Temkin writes: >>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. > > Sharability is not an attribute of a VMS file. File sharing is > controlled by the bits in FAB$B_SHR in the File Access Block (FAB) which > are set when a program opens the file. As soon as a program opens a file > for exclusive access, it is no longer shareable. You can, however, set the flag FAB$V_RRL (Read Regardless of Lock) in FAB$L_FOP (at least in MACRO, I don't know if any of the high-level languages provide a way to do this). > Any program that opens a file to write to it will almost certainly open > it for exclusive access. Programs written in high level languages > sometimes default to exclusive access. From VAX Fortran, for example, the > OPEN statement must include the keyword SHARED, else the file is opened for > exclusive access, (FAB$B_SHR=FAB$V_NIL). > John Hascall ISU Comp Center