- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: f$file_attributes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:04 AM
05-14-2004 02:04 AM
f$file_attributes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:21 AM
05-14-2004 02:21 AM
Re: f$file_attributes
For some f$file_attributes has to open the file. Although I expect f$file_attrib opens the file with sharing options allowing others to access the file this is not necessarily garanteed to avoid file open conflicts.
I suspect DIR does things another way.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:36 AM
05-14-2004 02:36 AM
Re: f$file_attributes
I have same problem when inquire a file opened for read and write in exclusive mode; information of f$file in this way are not avaiable.
To avoid error message in command procedure usign f$file I wrote:
$ DEFINE SYS$OUTPUT NLA0:
$ DEFINE SYS$ERROR NLA0:
$ myInfo = F$FILE(myFile,"Item")
$ DEASS SYS$ERROR
$ DEASS SYS$OUTPUT
I've seen some information are empy (for example EOF return always 0)
H.T.H.
Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 03:04 AM
05-14-2004 03:04 AM
Re: f$file_attributes
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 03:06 AM
05-14-2004 03:06 AM
Re: f$file_attributes
The RMS way is simply not the way to do it I guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 03:15 AM
05-14-2004 03:15 AM
Re: f$file_attributes
This fails on exclusively accessed files.
For some arguments, like EOF, one could argue it should fail because it is under control of the exclusive access stream.
DIR/FULL uses QIO access to get a snapshot of teh current values from the file header which may or might not be valid after obtained.
If desperate for this info, then I suppose you coudl parse FIR/FULL output (yuck!), or parse DUMP/HEADER output (yuck! yuck!), or write a program to do the QIO yourself (yumm!)
I would assume some customer at soem time haps already posted a formal request to resolve this and was denied. Still, you coudl try to escalate this (again) for fix in a future release. My 'shoot from the hip' reaction is that we need an RMS option to perform a read-only, header-only open. Maybe we need to make the 'UPI' bit a bit (sic!)stronger?! Or a new twist on the UFO bit perhaps? (Haven't checked... but I suspect UFO does not fill in XABs today. It could do so if XABs are present. Why not!).
[A similar question is why BACK/INGNO=INTERLOCK can read a file while no RMS usage can be used to read the file.
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 03:57 AM
05-14-2004 03:57 AM
Re: f$file_attributes
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 05:54 AM
05-14-2004 05:54 AM
Re: f$file_attributes
just thinking with my keyboard now...
Would it be too far-fetched to add some extra intelligence to f$FILE_ATT, such that: IF the file locked error is returned, THEN, for all meaningfull attributes the DIR/FULL- like header access is used, maybe with a different success status showing that this info IS from QIO, not from FAB (maybe in some situations it will be relevant (?) ).
-- Just thinking, maybe a suggestion to Guy Peleg :-)
I haven't got the faintest idea about how easy or how difficult it would be.
fwiw
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:33 PM
05-14-2004 02:33 PM
Re: f$file_attributes
I do agree with Hein, certain things (like EOF) should not really reported while the file is under exclusive access, after all there most probably is a reason why the file is locked after all.
As for adding another code branch via QIO, on the one hand it sounds attractive, on the other hand it also is a sort of feature creep and makes the code definitly more complex (and therefore ultimatly more likely to fail). So maybe Guy can just do it, but maybe there are also good reasons to leave it as it is.
Greetings, Martin