Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!uwvax!uwmacc!vms.macc.wisc.edu!dorl From: dorl@vms.macc.wisc.edu (Michael (NMI) Dorl) Newsgroups: comp.os.vms Subject: code to set file protection Message-ID: <1663@uwmacc.UUCP> Date: Fri, 26-Jun-87 17:32:41 EDT Article-I.D.: uwmacc.1663 Posted: Fri Jun 26 17:32:41 1987 Date-Received: Sat, 27-Jun-87 10:42:17 EDT Sender: news@uwmacc.UUCP Reply-To: dorl@vms.macc.wisc.edu (Michael (NMI) Dorl) Organization: UW-Madison Academic Computer Center Lines: 20 I am in need of some code to change a existing file's protection. I've looked through the RMS manuals and found only the protection XAB. The description of this XAB indicates that one can change a existing files protection if you open it, write it (or otherwise update it), and then close it with the XAB attached. I can not make this work. Even if I could, I might not want to modify the file. The only other mechanism I can find for this purpose is the QIOW IO$_Modify function. This requires the whole directory and file parsing route to get the file id. I suppose one could use RMS for this part of the task. Is a FIB block and channel number hidden in any of the RMS structures? Am I missing something? Seems there should be a better way to do this. Thanks, Michael Dorl dorl@vms.macc.wisc.edu dorl@wiscmacc.bitnet