<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: f$file_attributes in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276534#M2231</link>
    <description>F$FILE uses plain RMS and performance a full open to fill in FAB and XABFHC fields that are used to feed the requested data.&lt;BR /&gt;&lt;BR /&gt;This fails on exclusively accessed files.&lt;BR /&gt;For some arguments, like EOF, one could argue it should fail because it is under control of the exclusive access stream.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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!)&lt;BR /&gt;&lt;BR /&gt;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!).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[A similar question is why BACK/INGNO=INTERLOCK can read a file while no RMS usage can be used to read the file.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 14 May 2004 10:15:48 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2004-05-14T10:15:48Z</dc:date>
    <item>
      <title>f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276529#M2226</link>
      <description>Why is f$file_attributes giving access conflict messages when used on open files while dir/fu isn't ?</description>
      <pubDate>Fri, 14 May 2004 09:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276529#M2226</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-05-14T09:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276530#M2227</link>
      <description>which attributes are you asking for? &lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I suspect DIR does things another way.</description>
      <pubDate>Fri, 14 May 2004 09:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276530#M2227</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-05-14T09:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276531#M2228</link>
      <description>Hi Wim,&lt;BR /&gt;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.&lt;BR /&gt;To avoid error message in command procedure usign f$file I wrote:&lt;BR /&gt;$ DEFINE SYS$OUTPUT NLA0:&lt;BR /&gt;$ DEFINE SYS$ERROR NLA0:&lt;BR /&gt;$ myInfo = F$FILE(myFile,"Item")&lt;BR /&gt;$ DEASS SYS$ERROR&lt;BR /&gt;$ DEASS SYS$OUTPUT&lt;BR /&gt;I've seen some information are empy (for example EOF return always 0)&lt;BR /&gt; &lt;BR /&gt;H.T.H.&lt;BR /&gt;Antoniov&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 May 2004 09:36:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276531#M2228</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-05-14T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276532#M2229</link>
      <description>DIR command uses ACP QIOs to acquire information. F$FILE_ATTR uses RMS and is subject to the usual restrictions i.e it can't open files already opened in exclusive mode. If it gets errors then 0 can be returned.</description>
      <pubDate>Fri, 14 May 2004 10:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276532#M2229</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-05-14T10:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276533#M2230</link>
      <description>So, not a bug but a feature ?&lt;BR /&gt;The RMS way is simply not the way to do it I guess.</description>
      <pubDate>Fri, 14 May 2004 10:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276533#M2230</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2004-05-14T10:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276534#M2231</link>
      <description>F$FILE uses plain RMS and performance a full open to fill in FAB and XABFHC fields that are used to feed the requested data.&lt;BR /&gt;&lt;BR /&gt;This fails on exclusively accessed files.&lt;BR /&gt;For some arguments, like EOF, one could argue it should fail because it is under control of the exclusive access stream.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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!)&lt;BR /&gt;&lt;BR /&gt;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!).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[A similar question is why BACK/INGNO=INTERLOCK can read a file while no RMS usage can be used to read the file.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 May 2004 10:15:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276534#M2231</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-05-14T10:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276535#M2232</link>
      <description>Hein is THE RMS wizard and I think he is saying its supposed to work like it does. If you only wanted a few things then a small program would not be to bad. Open the file with the UPI option then use the file ACP QIOs to acquire the information you want.</description>
      <pubDate>Fri, 14 May 2004 10:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276535#M2232</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-05-14T10:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276536#M2233</link>
      <description>Ha Hein,&lt;BR /&gt;&lt;BR /&gt;just thinking with my keyboard now...&lt;BR /&gt;&lt;BR /&gt;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 (?) ).&lt;BR /&gt;&lt;BR /&gt;-- Just thinking, maybe a suggestion to Guy Peleg  :-)&lt;BR /&gt;&lt;BR /&gt;I haven't got the faintest idea about how easy or how difficult it would be.&lt;BR /&gt;&lt;BR /&gt;fwiw&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jan&lt;BR /&gt;</description>
      <pubDate>Fri, 14 May 2004 12:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276536#M2233</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-05-14T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: f$file_attributes</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276537#M2234</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Fri, 14 May 2004 21:33:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/f-file-attributes/m-p/3276537#M2234</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-05-14T21:33:42Z</dc:date>
    </item>
  </channel>
</rss>

