<?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. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421670#M42283</link>
    <description>Yyrkoon &lt;BR /&gt;&lt;BR /&gt;I'm glad you have solved your particular problem. However, the principle of the forum is that we share knowledge and experiences.&lt;BR /&gt;&lt;BR /&gt;To that end, it is very useful if you are able to explain what the problem was and how you fixed it. &lt;BR /&gt;&lt;BR /&gt;This will help ensure that the forum is used on a 'give and take' basis. &lt;BR /&gt;&lt;BR /&gt;Your comments about Hein's name made me smile. Don't exepct a call from the UN anytime soon :-)&lt;BR /&gt;&lt;BR /&gt;Craig</description>
    <pubDate>Tue, 19 May 2009 08:34:02 GMT</pubDate>
    <dc:creator>Craig A</dc:creator>
    <dc:date>2009-05-19T08:34:02Z</dc:date>
    <item>
      <title>RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421665#M42278</link>
      <description>&lt;BR /&gt;Hi all, I'm having quite problems trying to solve and issue with RMS files. The problem is the following. I have an indexed file with both, primary and alternate key, I want to retrieve all registers with same alternate key, of course I can do a sequential read and retrive them, but it seems quite inefficient, C is able to locate first register with an specified alternate key. Can it not locate next record with same altenate key?? It is hard to believe, but trusting some examples it can not.&lt;BR /&gt;&lt;BR /&gt;Do you know if it is possible to do what I want to? if so, How?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 18 May 2009 09:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421665#M42278</guid>
      <dc:creator>Yyrkoon</dc:creator>
      <dc:date>2009-05-18T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421666#M42279</link>
      <description>RMS is perfectly happy to help you read all records with the same alternate key.&lt;BR /&gt;Here is what you have to do:&lt;BR /&gt;&lt;BR /&gt;SYS$OPEN the file&lt;BR /&gt;SYS$CONNECT a RAB&lt;BR /&gt;SET: RAB$B_KRF to the desired key NUMBER (1?)&lt;BR /&gt;SET: RAB$L_KBB/RAB$B_KSZ to the target key VALUE&lt;BR /&gt;SET: RAB$B_RAC to RAB$C_KEY&lt;BR /&gt;&lt;BR /&gt;Do the first SYS$GET or an initial SYS$FIND&lt;BR /&gt;GET will deliver the data as decscribed in RBF/RSZ in the buffer set up by UBF/USZ.&lt;BR /&gt;SYS$FIND only positions. No data returned it typically allows for cleaner coding.&lt;BR /&gt;&lt;BR /&gt;SET: RAB$B_RAB to RAB$C_SEQ&lt;BR /&gt;SET: RAB$V_LIM in RAB$L_ROP&lt;BR /&gt;&lt;BR /&gt;LOOP: SYS$GET test for succes to know ther eis data, but also for RMS$_OK_LIM to know whether the end of the selected key value is reached without having to do the key fields compare yourself.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731final/4523/4523pro_011.html#index_x_550" target="_blank"&gt;http://h71000.www7.hp.com/doc/731final/4523/4523pro_011.html#index_x_550&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please note the when retrieving a large (more than 5%?) portion of the whole file it may well be MORE efficient to read the whole file from start to finish with program or tool (DATATRIEVE, SORT, Vselect, DIX,...).&lt;BR /&gt;&lt;BR /&gt;Hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 11:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421666#M42279</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-18T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421667#M42280</link>
      <description>There's an RMS library for C programming here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/1260" target="_blank"&gt;http://labs.hoffmanlabs.com/node/1260&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;BSD-style license.&lt;BR /&gt;&lt;BR /&gt;It doesn't use the OK_LIM stuff, but it can deal with sequential access and the keyed access.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 12:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421667#M42280</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-05-18T12:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421668#M42281</link>
      <description>Yyrkoon,&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but it seems quite inefficient&lt;BR /&gt;&lt;BR /&gt;  I'm not sure I understand the problem here. As per Hein's example, you read on the alternate key, then read sequentially to read further records with the same key value. Note that by RMS rules, they will be returned in temporal insertion order. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;but trusting some examples it can not.&lt;BR /&gt;&lt;BR /&gt;  Please post your example. Tell us what it's doing and what you expect.</description>
      <pubDate>Mon, 18 May 2009 21:45:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421668#M42281</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-05-18T21:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421669#M42282</link>
      <description>John, thanks, but I have already solve my issue.&lt;BR /&gt;Thanks to all, especially to the first guy answer (with such a weird name), it was an awesome explanation.&lt;BR /&gt;You and people like you make this page great!!</description>
      <pubDate>Tue, 19 May 2009 08:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421669#M42282</guid>
      <dc:creator>Yyrkoon</dc:creator>
      <dc:date>2009-05-19T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421670#M42283</link>
      <description>Yyrkoon &lt;BR /&gt;&lt;BR /&gt;I'm glad you have solved your particular problem. However, the principle of the forum is that we share knowledge and experiences.&lt;BR /&gt;&lt;BR /&gt;To that end, it is very useful if you are able to explain what the problem was and how you fixed it. &lt;BR /&gt;&lt;BR /&gt;This will help ensure that the forum is used on a 'give and take' basis. &lt;BR /&gt;&lt;BR /&gt;Your comments about Hein's name made me smile. Don't exepct a call from the UN anytime soon :-)&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Tue, 19 May 2009 08:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421670#M42283</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2009-05-19T08:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: RMS indexed files.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421671#M42284</link>
      <description>Craig,&lt;BR /&gt;&lt;BR /&gt;The problem was exactly what I said, I was trying to find some alternate (and duplicate) keys but I didn't want to read all file sequentially, so I was looking for the right option for rab$l_rop but I found no good one. 'Cause although everything is very good documented in my humble opinion it should be more arrange. Eventually RAB$V_LIM was the option I was expecting to.&lt;BR /&gt;&lt;BR /&gt;And I want to do just a small clarification about ... emmm ... about weird's name solution :-) after set rab$rop to v_lim it is necesary "activate" v_lim (xrab.rab$v_lim = 1;)&lt;BR /&gt;&lt;BR /&gt;Thanks again to all you.</description>
      <pubDate>Tue, 19 May 2009 11:06:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-indexed-files/m-p/4421671#M42284</guid>
      <dc:creator>Yyrkoon</dc:creator>
      <dc:date>2009-05-19T11:06:33Z</dc:date>
    </item>
  </channel>
</rss>

