<?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: RMS Indexed Files - Data compression in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958494#M33516</link>
    <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Thanks for your input. So I was mis-informed on the RMS Structures and Utilities course (about 10 years ago). &lt;BR /&gt;&lt;BR /&gt;The reason for my question was that I was told only tail compression (on the record rather than index/key) was was performed with Data Compression, but this went against documentation I've seen since that suggested otherwise.&lt;BR /&gt;&lt;BR /&gt;So, briefly:&lt;BR /&gt;&lt;BR /&gt;Index Compression - Front compression (compare with previous index record), Tail Compression (repeating trailing characters)&lt;BR /&gt;&lt;BR /&gt;Key Compression - Front compression, Tail Compression&lt;BR /&gt;&lt;BR /&gt;Data Compression - Repeating same characters (up to 255) anywhere in the data portion of the record.&lt;BR /&gt;&lt;BR /&gt;So that's 3 different types of compression (Front, Tail, Repeating?) on 3 different  &lt;BR /&gt;'structures' (Index, Key Part Of Record, Data Part Of Record).&lt;BR /&gt;&lt;BR /&gt;I'm adding a new field to some indexed files and want to make future changes easier by adding a filler. The idea is the file size doesn't increase much in size until the filler is needed.&lt;BR /&gt;&lt;BR /&gt;I can't avoid changing the recordsize this time so I'll use a program (COBOL, Basic, or DTR) to create a sequential file and populate the new field with a default value and then convert back to indexed with the new recordsize in the FDL.&lt;BR /&gt;&lt;BR /&gt;I'll need to do the same process for future changes but without the need to worry about changing the recordsize, so I should avoid potential re-compilation and 'invalid recordsize' errors.&lt;BR /&gt;&lt;BR /&gt;I wanted to make sure where I placed the filler in the record wouldn't make a difference.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Ramondo.</description>
    <pubDate>Thu, 09 Feb 2006 18:15:30 GMT</pubDate>
    <dc:creator>Ramondo</dc:creator>
    <dc:date>2006-02-09T18:15:30Z</dc:date>
    <item>
      <title>RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958487#M33509</link>
      <description>(as distinct from Index and Key compression).&lt;BR /&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'd be grateful for a definitive answer on this one.&lt;BR /&gt;&lt;BR /&gt;Does RMS Data Compression compress repeating same characters (up to 255?) anywhere in a record in an indexed file or only at the end?&lt;BR /&gt;&lt;BR /&gt;If it does it anywhere, this this mean all occurrences of repeating characters in the same record e.g 20 spaces in the middle of the record, 20 zeroes at the end?&lt;BR /&gt;&lt;BR /&gt;I want to add a 30 character filler to some RMS indexed files to avoid having to convert the file when new fields are added.&lt;BR /&gt;&lt;BR /&gt;For documentation it's better if the filler is in the middle of the record (similar fields grouped together).&lt;BR /&gt;&lt;BR /&gt;I would hope Data Compression on the filler would not increase the overall size of these files significantly (140, 220 &amp;amp; 500 byte records).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Ramondo.</description>
      <pubDate>Thu, 09 Feb 2006 02:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958487#M33509</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2006-02-09T02:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958488#M33510</link>
      <description>Ramondo, welcome to the VMS forum!&lt;BR /&gt;&lt;BR /&gt;Data compression takes place throughout the record. I am sure that Hein will chip in with full details.&lt;BR /&gt;&lt;BR /&gt;I have attached a quick sample to demonstrate the compression. The FDL defined a single 5 char string key at the start of the record.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Feb 2006 04:28:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958488#M33510</guid>
      <dc:creator>Duncan Morris</dc:creator>
      <dc:date>2006-02-09T04:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958489#M33511</link>
      <description>Ramondo,&lt;BR /&gt;&lt;BR /&gt;you can also look at the internal data within an indexed-sequential file with ANAL/RMS/INTERACTIVE. This allows you to navigate through the different internal structures of the file and to view the data records etc.&lt;BR /&gt;&lt;BR /&gt;Volker.</description>
      <pubDate>Thu, 09 Feb 2006 04:40:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958489#M33511</guid>
      <dc:creator>Volker Halle</dc:creator>
      <dc:date>2006-02-09T04:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958490#M33512</link>
      <description>Did the same test.&lt;BR /&gt;&lt;BR /&gt;Throughout the record but not in the key area of it. Overhead is 4 bytes in the record to indicate the compression, so I guess only compression when at least 5 times the same char. 4 bytes should indicate more than 255 char.&lt;BR /&gt;&lt;BR /&gt;Wim</description>
      <pubDate>Thu, 09 Feb 2006 04:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958490#M33512</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2006-02-09T04:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958491#M33513</link>
      <description>Thanks for the prompt replies guys.&lt;BR /&gt;&lt;BR /&gt;For some reason I thought analyze/interactive expanded the compressed items so I wouldn't be able to tell.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Ramondo.</description>
      <pubDate>Thu, 09 Feb 2006 05:01:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958491#M33513</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2006-02-09T05:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958492#M33514</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Different compression types are detailed here :&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_008.html#11_filestructure" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4506/4506pro_008.html#11_filestructure&lt;/A&gt; :&lt;BR /&gt;&lt;BR /&gt;Prolog 3 Files &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Prolog 3 files can accept multiple (or alternate) keys and all data types (including the nonstring 8-byte BIN8 and INT8 types). They also give you the option of saving space by compressing your data, indexes, and keys. &lt;BR /&gt;&lt;BR /&gt;Key compression compresses the key values in the data buckets. Likewise, index compression compresses the key values in index buckets, and data compression compresses the data portion of the records in the data buckets. &lt;BR /&gt;&lt;BR /&gt;Key or index compression is restricted to the string key data type and the string must be at least 6 bytes in length. &lt;BR /&gt;&lt;BR /&gt;With key or index compression, repeating leading and trailing characters are compressed. With front key compression, any characters that are identical to the characters at the front of the previous key are compressed. For example, the keys JOHN, JOHNS, JOHNSON, and JONES appear as JOHN, S, ON, and NES. &lt;BR /&gt;With rear key compression, any repeating characters at the end of the key are compressed to a single character. For instance, the key JOHNSON00000 appears as JOHNSON0. &lt;BR /&gt;&lt;BR /&gt;Enabling index compression results in RMS doing a sequential search in index buckets rather than its default binary search, since each index key value must be expanded until a match is found. &lt;BR /&gt;&lt;BR /&gt;With data compression, RMS can compress sequences of up to 255 repeating characters in the data portion of the user data records. For optimal performance, RMS does not compress sequences having less than five repeating characters. &lt;BR /&gt;&lt;BR /&gt;Compression has a direct effect on CPU time and disk space. Compression increases CPU time, but the keys are smaller, so your application can scan more quickly through the data and index buckets. &lt;BR /&gt;&lt;BR /&gt;and also in this older article :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/operating_systems/0093A18B-489951C0-1C009F.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/operating_systems/0093A18B-489951C0-1C009F.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Feb 2006 08:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958492#M33514</guid>
      <dc:creator>faris_3</dc:creator>
      <dc:date>2006-02-09T08:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958493#M33515</link>
      <description>The question has largely been answerred.&lt;BR /&gt;RMS compresses repeating chars anywhere in the record in chuncks up to 255 repeating bytes for data-compression&lt;BR /&gt;&lt;BR /&gt;As it finds the start with word aligned word compares, it might not find the shortest possible string all the time.&lt;BR /&gt;&lt;BR /&gt;For key compression there is front compression (those chars the same as the prior key... often very effective), and tail compression (repeat last char untill full key size is reached), but no repeating chars in the middle.&lt;BR /&gt;&lt;BR /&gt;Adding a 'just in case' field does not cost much at all, but watch out for future 'back-fill'. If you were to go back and fill those empty fields with real data in a populated file, then this is likely to cause massive bucket splitting and a convert will be needed right after such job&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.</description>
      <pubDate>Thu, 09 Feb 2006 08:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958493#M33515</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-02-09T08:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958494#M33516</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;Thanks for your input. So I was mis-informed on the RMS Structures and Utilities course (about 10 years ago). &lt;BR /&gt;&lt;BR /&gt;The reason for my question was that I was told only tail compression (on the record rather than index/key) was was performed with Data Compression, but this went against documentation I've seen since that suggested otherwise.&lt;BR /&gt;&lt;BR /&gt;So, briefly:&lt;BR /&gt;&lt;BR /&gt;Index Compression - Front compression (compare with previous index record), Tail Compression (repeating trailing characters)&lt;BR /&gt;&lt;BR /&gt;Key Compression - Front compression, Tail Compression&lt;BR /&gt;&lt;BR /&gt;Data Compression - Repeating same characters (up to 255) anywhere in the data portion of the record.&lt;BR /&gt;&lt;BR /&gt;So that's 3 different types of compression (Front, Tail, Repeating?) on 3 different  &lt;BR /&gt;'structures' (Index, Key Part Of Record, Data Part Of Record).&lt;BR /&gt;&lt;BR /&gt;I'm adding a new field to some indexed files and want to make future changes easier by adding a filler. The idea is the file size doesn't increase much in size until the filler is needed.&lt;BR /&gt;&lt;BR /&gt;I can't avoid changing the recordsize this time so I'll use a program (COBOL, Basic, or DTR) to create a sequential file and populate the new field with a default value and then convert back to indexed with the new recordsize in the FDL.&lt;BR /&gt;&lt;BR /&gt;I'll need to do the same process for future changes but without the need to worry about changing the recordsize, so I should avoid potential re-compilation and 'invalid recordsize' errors.&lt;BR /&gt;&lt;BR /&gt;I wanted to make sure where I placed the filler in the record wouldn't make a difference.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Ramondo.</description>
      <pubDate>Thu, 09 Feb 2006 18:15:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958494#M33516</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2006-02-09T18:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958495#M33517</link>
      <description>&amp;gt;&amp;gt; So I was mis-informed on the RMS Structures and Utilities course&lt;BR /&gt;&lt;BR /&gt;Or a minor miscommunications / misremember.&lt;BR /&gt;&lt;BR /&gt;Anyway, your summary seems correct.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; So that's 3 different types of compression (Front, Tail, Repeating?) on 3 different &lt;BR /&gt;'structures' (Index, Key Part Of Record, Data Part Of Record). &lt;BR /&gt;&lt;BR /&gt;Right. With index and key really being the same. Key and data compression are always a winner, best I know. It tends to save CPU time. Basically, RMS spends more time dealing with uncompressed records (skipping them, moving them) then (un/re)compressing them. Index compression has the size vs binrary search trade-off which probably makes it desireable for large (&amp;gt; 20 bytes) keys.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; The idea is the file size doesn't increase much in size until the filler is needed. &lt;BR /&gt;&lt;BR /&gt;Correct.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;  to create a sequential file and populate the new field with a default value and then convert back to indexed with the new recordsize in the FDL. &lt;BR /&gt;&lt;BR /&gt;Right. But had those fillers been added at the end a simple convert/pad can do the transformation. And the programs do not really care where the extra fields are in the record, unless they are part of a sun-structure to be moved/copied in a big chunk.&lt;BR /&gt;But then you'd be moving/copying nonsense for a while to come, untill the fields are used.&lt;BR /&gt;&lt;BR /&gt;Oh, and while you are goimg over you files, potentially rearranging fields, be sure to check the tuning in general perhaps with my 'tune_check_ tool from the OpenVMS freeware website [rms_tools]&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Feb 2006 19:55:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958495#M33517</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-02-09T19:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: RMS Indexed Files - Data compression</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958496#M33518</link>
      <description>Ta very much.&lt;BR /&gt;&lt;BR /&gt;Closing this thread.</description>
      <pubDate>Thu, 09 Feb 2006 21:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files-data-compression/m-p/4958496#M33518</guid>
      <dc:creator>Ramondo</dc:creator>
      <dc:date>2006-02-09T21:51:56Z</dc:date>
    </item>
  </channel>
</rss>

