<?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: File size of Open File.. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964290#M11857</link>
    <description>Hi Robert&lt;BR /&gt;&lt;BR /&gt;be carefull! &lt;BR /&gt;In case you have more than one version of your file, you will get the total size of all versions of this file.&lt;BR /&gt;&lt;BR /&gt;You may change the Directory Command to &lt;BR /&gt;&lt;BR /&gt;DIRECTORY -&lt;BR /&gt;SMSC_DAT1:[SMH00]smh00_own_file.dat; -&lt;BR /&gt;/SIZE/GRAND                       &lt;BR /&gt;(file.ext; or file.ext;0)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
    <pubDate>Mon, 19 Mar 2007 08:59:24 GMT</pubDate>
    <dc:creator>Heinz W Genhart</dc:creator>
    <dc:date>2007-03-19T08:59:24Z</dc:date>
    <item>
      <title>File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964287#M11854</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;I am using the f$file_attributes to find the file size of an open file using f$file_attributes. This fails.&lt;BR /&gt;&lt;BR /&gt;a =  F$FILE_ATTRIBUTES("SMSC_DAT1:[SMH00]smh00_own_file.dat", "eof")&lt;BR /&gt;%SYSTEM-W-ACCONFLICT, file access conflict&lt;BR /&gt; \SMSC_DAT1:[SMH00]smh00_own_file.dat\&lt;BR /&gt;&lt;BR /&gt;This file is opened in a global section.&lt;BR /&gt;$ install list/global&lt;BR /&gt;        Group Global Sections&lt;BR /&gt;&lt;BR /&gt;SMH00_OWN_FILE.DAT&lt;BR /&gt;                 (00000000) WRT     DZRO TMP GRP     =000100 Pgltcnt/Refcnt=360944/22559&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I do it for a normal file it works..&lt;BR /&gt;&lt;BR /&gt;Is there a way around it. Or an other way&lt;BR /&gt;&lt;BR /&gt;gr,&lt;BR /&gt;&lt;BR /&gt;Robert Verkerk&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 07:49:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964287#M11854</guid>
      <dc:creator>R. Verkerk</dc:creator>
      <dc:date>2007-03-19T07:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964288#M11855</link>
      <description>No, sorry, not with straight DCL. &lt;BR /&gt;F$FILE always use RMS SYS$OPEN to have it load details into FAB's and XAB's.&lt;BR /&gt;For the open to succeed, the sharing conditions must be correct.&lt;BR /&gt;&lt;BR /&gt;DIR/FULL on the other hand oly uses RMS for remote (DECNET) files. For local files is uses a QIO to get the Attributes.&lt;BR /&gt;&lt;BR /&gt;So you can either parse DIR/FULL output, or write a (not to hard!) program to do that QIO yourself and return the data in any way you like (dcl symbols probably).&lt;BR /&gt;&lt;BR /&gt;IMHO F$FILE should use QIO and blow through sharing... it is not about to share data it only want meta data! And/or RMS should get a 'Display Only' option. Like a SYS$DISPLAY call without a prior open, or an other flag.&lt;BR /&gt;RMS also needs the ability to use the SYSLCK option to be able to code up IGNORE=INTERLOCK like BACKUP.&lt;BR /&gt;&lt;BR /&gt;Met vriendelijke groetjes,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 08:26:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964288#M11855</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-19T08:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964289#M11856</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;Than we will just use some very crude commands:&lt;BR /&gt;&lt;BR /&gt;$     PIPE DIRECTORY -&lt;BR /&gt;SMSC_DAT1:[SMH00]smh00_own_file.dat -&lt;BR /&gt;            /SIZE /GRAND_TOTAL | - &lt;BR /&gt;           SEARCH SYS$INPUT "Grand total" /NUM /NOHIGHLIGHT | -&lt;BR /&gt;           (READ SYS$INPUT TMPI ; -&lt;BR /&gt;            TMPI = F$ELEMENT(12," ",TMPI) ; -&lt;BR /&gt;            DEFINE/JOB/NOLOG TMP_RESULT &amp;amp;TMPI -&lt;BR /&gt;           )&lt;BR /&gt;&lt;BR /&gt;$ sho log TMP_RESULT&lt;BR /&gt;&lt;BR /&gt;gr,&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Mon, 19 Mar 2007 08:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964289#M11856</guid>
      <dc:creator>R. Verkerk</dc:creator>
      <dc:date>2007-03-19T08:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964290#M11857</link>
      <description>Hi Robert&lt;BR /&gt;&lt;BR /&gt;be carefull! &lt;BR /&gt;In case you have more than one version of your file, you will get the total size of all versions of this file.&lt;BR /&gt;&lt;BR /&gt;You may change the Directory Command to &lt;BR /&gt;&lt;BR /&gt;DIRECTORY -&lt;BR /&gt;SMSC_DAT1:[SMH00]smh00_own_file.dat; -&lt;BR /&gt;/SIZE/GRAND                       &lt;BR /&gt;(file.ext; or file.ext;0)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Heinz</description>
      <pubDate>Mon, 19 Mar 2007 08:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964290#M11857</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2007-03-19T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964291#M11858</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why not use:&lt;BR /&gt;&lt;BR /&gt;dir/size=allo/nohead/notrai/wid=file=200 xxx&lt;BR /&gt;&lt;BR /&gt;The you do not need the SEARH.&lt;BR /&gt;Just pick up element 2 from a compressed string with space seperator&lt;BR /&gt;&lt;BR /&gt;Oh... be sure to ask for the last version only.&lt;BR /&gt;&lt;BR /&gt;$ PIPE DIRECTORY /size=allo/nohead/notrai/wid=file=100 X.X. | (READ SYS$INPUT X ; X=F$ELE(1," ",F$EDI(X,"COMPRESS")) ; DEF/JO XX &amp;amp;X)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:10:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964291#M11858</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-19T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964292#M11859</link>
      <description>The file looks to be 360,944 pages in size.&lt;BR /&gt;&lt;BR /&gt;Another (massively brute force, unsupported, subject to change without notice) approach would involve capturing and parsing the output of INSTALL.&lt;BR /&gt;&lt;BR /&gt;What might you be up to here?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Mar 2007 13:52:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964292#M11859</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-19T13:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964293#M11860</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply's. The task at hand is as follows. We know this particular file can be very big. We want to know before we make a backup if the file will fit on a specific volume. But we want to know the size before the backup. While the file is still live, The file does not grow. Once it is created it has a fixed format.&lt;BR /&gt;&lt;BR /&gt;That's why we try to do this.&lt;BR /&gt;&lt;BR /&gt;gr,&lt;BR /&gt;&lt;BR /&gt;Robert Verkerk.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 02:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964293#M11860</guid>
      <dc:creator>R. Verkerk</dc:creator>
      <dc:date>2007-03-20T02:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964294#M11861</link>
      <description>I would do a &lt;BR /&gt;$ dir /select=size=min=1000000 file.ext;/size=all&lt;BR /&gt;$ if $status .eq. %x00000001 then say "to big"&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Tue, 20 Mar 2007 05:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964294#M11861</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-03-20T05:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964295#M11862</link>
      <description>Yeah, For a specific, single file copy you could do like Wim suggests. Take the space available (F$GETDVI), subtract some fudge factor (at least 2 clusters: EOF rounding, DIRectory expansion, INDEXF.SYS expansion being very unlikely) and let DIRECTORY do the compare.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 06:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964295#M11862</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-20T06:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: File size of Open File..</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964296#M11863</link>
      <description>There are second-level factors here, such as the efficiency of the tape compression -- the answer to this simple "will it fit?" question can become quite intriguing.  Other factors include the capacity of the media -- and upgrades aside, BACKUP is quite willing to span tape volumes.  (This question ended up in the OpenVMS FAQ, just because it looks so easy, and can become so, um, intriguing.)&lt;BR /&gt;&lt;BR /&gt;Or consider compression.  There are various tools that can compress data, including BACKUP and its latent compression.   Most section files I've encountered would compress very nicely.&lt;BR /&gt;&lt;BR /&gt;Or you can exclude this file from the operation, and potentially create a tool which maps to the section and extracts its data into a file that BACKUP can then process.&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 10:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/file-size-of-open-file/m-p/3964296#M11863</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-03-20T10:58:25Z</dc:date>
    </item>
  </channel>
</rss>

