Operating System - OpenVMS
1752734 Members
5683 Online
108789 Solutions
New Discussion юеВ

Re: Lexical function f$file_attributes() with attribute LOCKED not working

 

Lexical function f$file_attributes() with attribute LOCKED not working

NODE> open/read /write trace trace.txt
NODE> a = f$file_attribute("trace.txt","LOCKED")
%SYSTEM-W-ACCONFLICT, file access conflict
\trace.txt\

OpenVMS help:
TRUE if a file is deaccessed-locked;
otherwise FALSE.

If I understand the help correctly than the value TRUE should have been assigned to the symbol "a" when the file trace.txt is locked by any other process.

As you can see this does not happen.
When I close the file the correct value FALSE is assigned to "a".
4 REPLIES 4
Arch_Muthiah
Honored Contributor

Re: Lexical function f$file_attributes() with attribute LOCKED not working

Boudewijn,

Sorry but LOCKED in this case doesn't mean what you think it means. From HELP
LEX F$FILE
LOCKED String TRUE if a file is deaccessed-locked;
otherwise FALSE


In this case deaccessed-locked is related to the way RSX applications would
handle a file.

Find this issue discussed in details here....

http://groups.google.com/group/comp.os.vms/browse_frm/thread/d6f2b946c5c3b16a/82ac54578609e0f8%2382ac54578609e0f8


Archunan
Regards
Archie

Re: Lexical function f$file_attributes() with attribute LOCKED not working

Hey Archunan

Thansk for your reply. I found the other threadlist and saw some solutions that they where providing there to find out if a file is still accessed by any other process.
I'll look into those and will close this list.

Although I do agree with the others that it would be nice if the f$file_attribute with locked attribute is working the way we all would like it to work. Perhaps someting for a future release? :-)

Kind Regards

Bou
Robert Atkinson
Respected Contributor

Re: Lexical function f$file_attributes() with attribute LOCKED not working

Bou,
there is a site you can request this sort of thing from HP :-

http://www.hpuseradvocacy.org/article/43

Robert.

Re: Lexical function f$file_attributes() with attribute LOCKED not working

I did.
You never know.

Thanks.

Bou.