Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!think!ames!ucbcad!ucbvax!CITHEX.CALTECH.EDU!carl
From: carl@CITHEX.CALTECH.EDU (Carl J Lydick)
Newsgroups: comp.os.vms
Subject: Re: DCL programming and BACKUP journaling question
Message-ID: <870723140822.052@CitHex.Caltech.Edu>
Date: Thu, 23-Jul-87 17:17:36 EDT
Article-I.D.: CitHex.870723140822.052
Posted: Thu Jul 23 17:17:36 1987
Date-Received: Sat, 25-Jul-87 10:50:20 EDT
References: <870723-090735-1955@Xerox>
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 25


 > 1. DCL write/update does not work for me.
 > For a test case I created a file called j.1 which has two records:
 > 22-JUL-1987
 > 23-JUL-1987
 > I then open the file with:
 > $ open/share io j.1
 > Read the records:
 > $ read io rec1
 > $ read io rec2
 > Update rec2 with rec1:
 > $ write/update io rec1

 > At this point I got the error message:
 > %RMS-F-FAC, record operation not permitted by specified file access
 > (FAC).

 > The file is owned by me and the protection code is O:RWED. It is a
 > sequential file. This code is tested under VMS 4.5.

You'd get the same message any time you try to write to the file, since
you've opened it readonly.  The /share says you'll let other people open
the file while you're reading it; it doesn't say you can write it.  You
need to use the command:
	$ OPEN/READ/WRITE io j.1