dbTalk Databases Forums  

open a file with read permission only

comp.databases.pick comp.databases.pick


Discuss open a file with read permission only in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mdsi2000
 
Posts: n/a

Default open a file with read permission only - 08-22-2006 , 11:43 AM






With Unidata you can OPEN a file with the READONLY argument. Does
Universe have something similar? I don't see anything in the docs.

I want to be able to prevent users from modifying history records, but
modify current records. I know it could modify the program, but I want
the easy way out.

Pete


Reply With Quote
  #2  
Old   
Frank Winans
 
Posts: n/a

Default Re: open a file with read permission only - 08-22-2006 , 03:03 PM






"mdsi2000" <mdsi2000 (AT) yahoo (DOT) com> wrote

Quote:
With Unidata you can OPEN a file with the READONLY argument. Does
Universe have something similar? I don't see anything in the docs.

I want to be able to prevent users from modifying history records, but
modify current records. I know it could modify the program, but I want
the easy way out.

Pete

How about replacing the true file with a qpointer to a directory
on the underlying operating system; then leave that write-protected
in linux/windows/whatever except briefly when legit progs need to update it?

Or, you could hang a basic subroutine on its data section D-pointer item to
deny updates to the data section whenever it finds a certain named item in
the dict section. Or enable writes only if SYSTEM(39) sees speller checking
is briefly enabled for that line, though site-wide you usually disable it...
The D3 ACCESS() function will be very handy in this sort of subroutine.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.