From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,731b5089758f2cd,start X-Google-Attributes: gid1164f8,public From: Joshua Cope Subject: Re: Question for Vax experts Date: 1997/12/02 Message-ID: <34842579.4243@star.enet.dec.com>#1/1 X-Deja-AN: 294540405 References: <65vi27$4mb@nr1.calgary.istar.net> Organization: Digital Equipment Corporation Reply-To: cope@star.enet.dec.com Newsgroups: comp.sys.dec Brad Hawken wrote: > > My question is, what "keywords = what values" should be used in order to > make the newly created file sharable (I think that is the vax lingo). > Essentially creat(e) the file so that once a file is created calling open() > again to retrieve a new file descriptor doesn't give the error > "65535 file currently locked by another user" Files are opened as shareable by specifying the attributes in each call to open(), etc. from your application. You can't create a file and mark it as "always open this file shareable"; the application which opens the file specifies what kind of sharing it wants. If you have the full documentation set, take a look at the "Guide to OpenVMS File Applications", which describes the FAB fields and values. If not, you can either look in FABDEF.H or use "HELP RMS FAB" to see the list. In particular, the SHR (FAB$B_SHR) field is used to specify file sharing attributes on file creation or access. Try adding "shr=get" to your create and open calls for shared read access, "shr=put" for shared write access, etc. ------------------------------------------------------------ The above opinions and information are my own, and not necessarily those of Digital Equipment Corporation. ------------------------------------------------------------