<?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: How to compress/&amp;quot;trucate&amp;quot;  Prolog 3 files. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820048#M10081</link>
    <description>Lars,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I don't need run time performance and as the files are already (used as) readonly I can convert offline. &lt;BR /&gt;But I would like each file to be small&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;So, data compression and key compression is what should help/&lt;BR /&gt;Are the files NOW using compression? Then you might decrease the calculated allocation by another 10 %, and accept any extension if needed.&lt;BR /&gt;If you are now NOT using compression, change the FDLs to use compression, and start with allocating 25 %.&lt;BR /&gt;Perhaps afterward you might investigate for excessive fragmentation, and cope with that.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
    <pubDate>Sun, 09 Jul 2006 07:45:08 GMT</pubDate>
    <dc:creator>Jan van den Ende</dc:creator>
    <dc:date>2006-07-09T07:45:08Z</dc:date>
    <item>
      <title>How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820044#M10077</link>
      <description>I have a large number ( 100.000+) of prolog 3 RMS files, that is no longer updated, but will be accessed readonly.&lt;BR /&gt;The files are 500KB - 5 MB is size each and have a rather simpel key structure. &lt;BR /&gt;&lt;BR /&gt;I would like to convert the files, remove all unneeded space and do a 'light' compress of the data/index. The converted files will have VMS security 'R'.&lt;BR /&gt;Most of the files are from VAXes and they are moved to an Integrity server, so CPU should not be a problem.&lt;BR /&gt;&lt;BR /&gt;How can  I best automate the generation of the needed FDL?&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Jul 2006 11:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820044#M10077</guid>
      <dc:creator>Lars Funck Jensen_1</dc:creator>
      <dc:date>2006-07-08T11:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820045#M10078</link>
      <description>Lars,&lt;BR /&gt;&lt;BR /&gt;seeing the sheer number of files I understand the need to automate!&lt;BR /&gt;&lt;BR /&gt;My plan would be a procedure that:&lt;BR /&gt;&lt;BR /&gt;1. Get next file to process.&lt;BR /&gt;&lt;BR /&gt;2. ANA/RMS/FDL/OUTP=xxx&lt;BR /&gt;&lt;BR /&gt;3. ANA/RMS/STAT/OUTP=yyy&lt;BR /&gt;&lt;BR /&gt;4. scan yyy for data fill percentage.&lt;BR /&gt;&lt;BR /&gt;5. edit xxx; calculate % found in (4.) times ALLOCATION&lt;BR /&gt;&lt;BR /&gt;( if you need extra performance: calculate AREA_0 and AREA_1 to split up ALLOCATION. The rate is the TOTAL length of ALL keys vs. record length.&lt;BR /&gt;Put DATA_AREA as AREA_1 and INDEX_AREA as AREA_0)&lt;BR /&gt;&lt;BR /&gt;6. Convert the file using the constructed FDL.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--  Expect this to be a LENGTHY process!&lt;BR /&gt;&lt;BR /&gt;If you need those files readable during the process, I would advise the READs to use a SEARCHLIST over (new,old) environment, using /SHARE on the convert to create the file with a temporary name in the new location, and renaming that to the real name before proceeding to the next file.&lt;BR /&gt;&lt;BR /&gt;Hein: please add to or change any of the above if you see reason to!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I leave the details of writing (and testing) the procedure. &lt;BR /&gt;&lt;BR /&gt;success, and patience!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Jul 2006 16:15:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820045#M10078</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-08T16:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820046#M10079</link>
      <description>Lars,&lt;BR /&gt;&lt;BR /&gt;Jan is correct, but I will add my US$ 0.02.&lt;BR /&gt;&lt;BR /&gt;You will also need to use the F$SEARCH lexical function to iterate through the 100,000 files. For every disk (F$SEARCH has no way to wildcard the device name, except if you use a search list in the logical name).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, http://www</description>
      <pubDate>Sun, 09 Jul 2006 04:53:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820046#M10079</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-07-09T04:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820047#M10080</link>
      <description>I was hoping for a little less editing work!&lt;BR /&gt;&lt;BR /&gt;Or making a standard FDL and for each file just add a few lines to the FDL, based on some info from the existing file ( ana/rms, +?, +?).&lt;BR /&gt;&lt;BR /&gt;I don't need run time performance and as the files are already (used as) readonly I can convert offline. &lt;BR /&gt;But I would like each file to be small. This makes it much faster to move all of the files for archiving, backup or restore etc.&lt;BR /&gt;100 GB of internal filler space would be nice to eliminate. &lt;BR /&gt;A little data compress may not hurt.&lt;BR /&gt;&lt;BR /&gt;PS!  For the DCL coding part, I will be fine.</description>
      <pubDate>Sun, 09 Jul 2006 06:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820047#M10080</guid>
      <dc:creator>Lars Funck Jensen_1</dc:creator>
      <dc:date>2006-07-09T06:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820048#M10081</link>
      <description>Lars,&lt;BR /&gt;&lt;BR /&gt;&lt;QUOTE&gt;&lt;BR /&gt;I don't need run time performance and as the files are already (used as) readonly I can convert offline. &lt;BR /&gt;But I would like each file to be small&lt;BR /&gt;&lt;/QUOTE&gt;&lt;BR /&gt;So, data compression and key compression is what should help/&lt;BR /&gt;Are the files NOW using compression? Then you might decrease the calculated allocation by another 10 %, and accept any extension if needed.&lt;BR /&gt;If you are now NOT using compression, change the FDLs to use compression, and start with allocating 25 %.&lt;BR /&gt;Perhaps afterward you might investigate for excessive fragmentation, and cope with that.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jul 2006 07:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820048#M10081</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-07-09T07:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820049#M10082</link>
      <description>&amp;gt;&amp;gt;  I have a large number ( 100.000+) of prolog 3 RMS files, that is no longer updated, but will be accessed readonly.&lt;BR /&gt;&lt;BR /&gt;As other indicated, automation is in order.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; The files are 500KB - 5 MB is size each and have a rather simpel key structure.&lt;BR /&gt;&lt;BR /&gt;Do you need the key structure to be retained at all?&lt;BR /&gt;If not, just ZIP it up. The RMS indexed file comression options are too limited to be truly effective in general.&lt;BR /&gt;&lt;BR /&gt;How about dropping down to the primary key only&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I  would like to convert the files, remove all unneeded space&lt;BR /&gt;&lt;BR /&gt;- Be sure to edit the FDL's with FILL=100 everywhere &lt;BR /&gt;&lt;BR /&gt;- Be sure to edit the FDL's with BUCKETSIZE=63 for &lt;BR /&gt;the data aready, and maybe just every where. This will:&lt;BR /&gt;--- reduce bucket overhead (duh!)&lt;BR /&gt;--- reduce wasted space at the end of each bucket, as records have to fit entirely.&lt;BR /&gt;--- avoid the need to reset key compression as start of each bucket.&lt;BR /&gt;--- reduce the number of index entries.&lt;BR /&gt;&lt;BR /&gt;- Automate the edit with TPU or PERL.&lt;BR /&gt;I have some perl that does largely what you want, and may be able to find time to change it to do exaclty what you need.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; do a 'light' compress of the data/index.&lt;BR /&gt;&lt;BR /&gt;RMS only has a light compress.&lt;BR /&gt;&lt;BR /&gt;You specifically want DATA and KEy compression. Index compression is often less effective, cost more overhead (linear search) and there is simply much less to compress.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; How can I best automate the generation of the needed FDL?&lt;BR /&gt;&lt;BR /&gt;Perl!.. or DCL.&lt;BR /&gt;&lt;BR /&gt;Jan wrote &amp;gt;&amp;gt;&amp;gt; ( if you need extra performance: calculate AREA_0 and AREA_1 to split up ALLOCATION. The rate is the TOTAL length of ALL keys vs. record length.&lt;BR /&gt;&lt;BR /&gt;For static file there is really no performance benefit to be expected from mutliple areas, and mulitple areas cause mutliple round-ups in allocation and extents.&lt;BR /&gt;&lt;BR /&gt;Jan &amp;gt;&amp;gt; Put DATA_AREA as AREA_1 and INDEX_AREA as AREA_0)&lt;BR /&gt;&lt;BR /&gt;I like that.. but only when exectued to the last detail. It requires disk cluser size control and reduced bucekt sizes. to multiples of 16 or 8: not 63.&lt;BR /&gt;&lt;BR /&gt;Jan&amp;gt;&amp;gt;. -- Expect this to be a LENGTHY process!&lt;BR /&gt;&lt;BR /&gt;Nah.&lt;BR /&gt;&lt;BR /&gt;Jan&amp;gt;&amp;gt; If you need those files readable during the process, I would advise the READs to use a SEARCHLIST over (new,old) environment, using /SHARE on the convert to create the file with a temporary name in the new location, and renaming that to the real name before proceeding to the next file.&lt;BR /&gt;&lt;BR /&gt;If the stuff is life, yeah you need something like that.&lt;BR /&gt;For low access, readonly, a backup /ignore=interlock is probaby acceptable, notably if you follow it with  ANAL/RMS and/or CONVERT.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I was hoping for a little less editing work!&lt;BR /&gt;&lt;BR /&gt;Authomate it!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Or making a standard FDL and for each file just add a few lines to the FDL, based on some info from the existing file ( ana/rms, +?, +?).&lt;BR /&gt;&lt;BR /&gt;I have some tools already  published that may help:&lt;BR /&gt;VMS FREEWARE V5/V6 [RMSTOOLS]&lt;BR /&gt;- FDL$GENERATE to quickly generate basic FDL's&lt;BR /&gt;- BACKUP_INDEXED_FILE... it does the 63 block bucket, primary key only thing, and call the convert for you!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I don't need run time performance and as the files are already (used as) readonly I can convert offline.&lt;BR /&gt;&lt;BR /&gt;Too easy!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; But I would like each file to be small. This makes it much faster to move all of the files for archiving, backup or restore etc.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 100 GB of internal filler space would be nice to eliminate.&lt;BR /&gt;&lt;BR /&gt;Oh yeah! $50 saved :-).&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; A little data compress may not hurt.&lt;BR /&gt;&lt;BR /&gt;RMS only removes strings of more than 6 repeating characters. No bit-patterns like ZIP / LV&lt;BR /&gt;&lt;BR /&gt;Jan &amp;gt;&amp;gt; you might decrease the calculated allocation by another 10 %, and accept any extension if needed.&lt;BR /&gt;&lt;BR /&gt;Yes.&lt;BR /&gt;&lt;BR /&gt;jan&amp;gt; If you are now NOT using compression, change the FDLs to use compression, and start with allocating 25 %.&lt;BR /&gt;&lt;BR /&gt;yes: + extent 5%&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; Perhaps afterward you might investigate for excessive fragmentation, and cope with that.&lt;BR /&gt;&lt;BR /&gt;Start on an empty/unfragmented disk and just run one at a time and all will be fine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jul 2006 20:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820049#M10082</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-09T20:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820050#M10083</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;Lars,&lt;BR /&gt;&lt;BR /&gt;Attached a perl script that i use to bulk-edit FDL files. It already had (too ?)many? options and I added a 'DENSE' option which should largley suit your purpose.&lt;BR /&gt;&lt;BR /&gt;Use it as:&lt;BR /&gt;&lt;BR /&gt;$perl my_fdl_edit.pl DENSE CLEAN &amp;lt; old.fdl &amp;gt; new.fdl&lt;BR /&gt;&lt;BR /&gt;old.fdl would come from FDL$GENERATE or ANAL/RMS&lt;BR /&gt;&lt;BR /&gt;You could use GROW=-25 to further reduce allocation by a percentage (25 in this example). &lt;BR /&gt;&lt;BR /&gt;Help text below.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Usage: perl MY_FDL_EDIT.pl option [options] &amp;lt; old.fdl &amp;gt; new.fd&lt;BR /&gt;Version: 4-Jul-2006&lt;BR /&gt;Options:&lt;BR /&gt;&lt;BR /&gt;        CLEAN      Remove miscaleaneous FDL$GENERATE items&lt;BR /&gt;        NOSIZE     Remove ALLOCATION and EXTENTION&lt;BR /&gt;        DF[m]=nn   Data  Fill for area [m] or all&lt;BR /&gt;        IF[m]=nn   Index Fill for area [m] or all&lt;BR /&gt;        ICMIN=nn   Minimum Key Size for Index Compression&lt;BR /&gt;        GROW[m]=nn Percent Change for area [m] allocation&lt;BR /&gt;        ALIGN      Align data area on cluster boundary&lt;BR /&gt;        EVEN       Select bucket sizes witk 8K factors&lt;BR /&gt;        DENSE[=nn] Minimum space [bucket size - default=64 ]&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jul 2006 00:02:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820050#M10083</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-10T00:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compress/"trucate"  Prolog 3 files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820051#M10084</link>
      <description>Sorry, fat fingered the attach.&lt;BR /&gt;Trying again.&lt;BR /&gt;Hein.</description>
      <pubDate>Mon, 10 Jul 2006 00:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-compress-quot-trucate-quot-prolog-3-files/m-p/3820051#M10084</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-07-10T00:03:50Z</dc:date>
    </item>
  </channel>
</rss>

