Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Joshua Cope <cope@star.enet.dec.com>
Subject: Re: Question for Vax experts
Date: 1997/12/02	[thread overview]
Message-ID: <34842579.4243@star.enet.dec.com> (raw)
In-Reply-To: 65vi27$4mb@nr1.calgary.istar.net


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.
------------------------------------------------------------



       reply	other threads:[~1997-12-02  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <65vi27$4mb@nr1.calgary.istar.net>
1997-12-02  5:00 ` Joshua Cope [this message]
1997-12-02  5:00 ` Question for Vax experts Chuck McCrobie (** MAD VAX **)
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox