<?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 rms index key values in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533535#M17521</link>
    <description>Is it possible when defining an rms key within an fdl to allow uppercase and lowecase letters to be treated with the same match value.&lt;BR /&gt;Example: a 25 byte key field for name will access the same whether reading by the key&lt;BR /&gt;   Massachusetts or MASSACHUSETTS&lt;BR /&gt;A VMS Search would bring up either field as being the same, but I will get 2 different key values when reading by the 25 byte rms defined key.</description>
    <pubDate>Fri, 13 Nov 2009 16:32:34 GMT</pubDate>
    <dc:creator>Tony Gallati</dc:creator>
    <dc:date>2009-11-13T16:32:34Z</dc:date>
    <item>
      <title>rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533535#M17521</link>
      <description>Is it possible when defining an rms key within an fdl to allow uppercase and lowecase letters to be treated with the same match value.&lt;BR /&gt;Example: a 25 byte key field for name will access the same whether reading by the key&lt;BR /&gt;   Massachusetts or MASSACHUSETTS&lt;BR /&gt;A VMS Search would bring up either field as being the same, but I will get 2 different key values when reading by the 25 byte rms defined key.</description>
      <pubDate>Fri, 13 Nov 2009 16:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533535#M17521</guid>
      <dc:creator>Tony Gallati</dc:creator>
      <dc:date>2009-11-13T16:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533536#M17522</link>
      <description>&lt;BR /&gt;Yes it is possible, but standard RMS keys are case blind.&lt;BR /&gt;&lt;BR /&gt;String keys are just arrays of 8-bit unsigned chars.&lt;BR /&gt;&lt;BR /&gt;You can however use COLLATING keys.&lt;BR /&gt;&lt;BR /&gt;that should work but possibly more hassle than you want. There is very little experience with collated keys out there.&lt;BR /&gt;&lt;BR /&gt;You may want to store UPCASED, and match upcased.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731final/4506/4506pro_006.html#apps_collating_keys_ex" target="_blank"&gt;http://h71000.www7.hp.com/doc/731final/4506/4506pro_006.html#apps_collating_keys_ex&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731final/4523/4523pro_018.html#170_xabb_dtpfield" target="_blank"&gt;http://h71000.www7.hp.com/doc/731final/4523/4523pro_018.html#170_xabb_dtpfield&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/6027/6027pro_008.html" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/6027/6027pro_008.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Fri, 13 Nov 2009 16:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533536#M17522</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-11-13T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533537#M17523</link>
      <description>If I'm not inclined to tangle with NCS and collation (and there seem few source code examples of this stuff around; Hein or I should probably post one somewhere), then (for simplicity) I usually upcase the search keys in an RMS indexed file, and also tend to enforce use of either space-padded or null-padded strings, depending on the environment.&lt;BR /&gt;&lt;BR /&gt;Depending on what you're up to here, a soundex key can be useful, too.</description>
      <pubDate>Fri, 13 Nov 2009 17:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533537#M17523</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-13T17:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533538#M17524</link>
      <description>Is it too "expensive" to store in the record both an upper case version to use as the key and (presumably) a mixed case version for presentation?&lt;BR /&gt;&lt;BR /&gt;This will mean that you can correct the case used on data input and have a standard version of each entry.  It also saves you trying to reconstruct the "correct" version at run time - think of Anglo surnames with Mc, Mac or O' (or Dutch de) at the start where the next character should be upper case ...</description>
      <pubDate>Sun, 15 Nov 2009 22:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533538#M17524</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2009-11-15T22:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533539#M17525</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;  Don't forget, storage is cheap. When defining a record it's often helpful to make artificial keys based on other fields, rather than trying to use data directly. You get a bigger record, but it can help in semantics. Assuming "Massachusetts" is a real example, consider storing the record as:&lt;BR /&gt;&lt;BR /&gt;KEY field     Data field&lt;BR /&gt;MASSACHUSETTS Massachusetts other stuff&lt;BR /&gt;&lt;BR /&gt;So, the data retains case as entered, but the key is always upper cased. When doing a lookup, upper case the search key, but use the case preserved data field when printing the record.&lt;BR /&gt;&lt;BR /&gt;As long as all the code that deals with the file is isolated into a module, you can easily enforce formatting and case rules without the application being aware.</description>
      <pubDate>Sun, 15 Nov 2009 23:29:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533539#M17525</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2009-11-15T23:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: rms index key values</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533540#M17526</link>
      <description>And for new or substantially-updated applications, UTF-8 for data storage (which has better international support) and UTC for time are both good candidates for inclusion.</description>
      <pubDate>Mon, 16 Nov 2009 01:38:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/rms-index-key-values/m-p/4533540#M17526</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-11-16T01:38:09Z</dc:date>
    </item>
  </channel>
</rss>

