- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: rms index key values
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2009 08:32 AM
тАО11-13-2009 08:32 AM
rms index key values
Example: a 25 byte key field for name will access the same whether reading by the key
Massachusetts or MASSACHUSETTS
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2009 08:55 AM
тАО11-13-2009 08:55 AM
Re: rms index key values
Yes it is possible, but standard RMS keys are case blind.
String keys are just arrays of 8-bit unsigned chars.
You can however use COLLATING keys.
that should work but possibly more hassle than you want. There is very little experience with collated keys out there.
You may want to store UPCASED, and match upcased.
http://h71000.www7.hp.com/doc/731final/4506/4506pro_006.html#apps_collating_keys_ex
http://h71000.www7.hp.com/doc/731final/4523/4523pro_018.html#170_xabb_dtpfield
http://h71000.www7.hp.com/doc/73final/6027/6027pro_008.html
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2009 09:30 AM
тАО11-13-2009 09:30 AM
Re: rms index key values
Depending on what you're up to here, a soundex key can be useful, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 02:12 PM
тАО11-15-2009 02:12 PM
Re: rms index key values
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 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 03:29 PM
тАО11-15-2009 03:29 PM
Re: rms index key values
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:
KEY field Data field
MASSACHUSETTS Massachusetts other stuff
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 05:38 PM
тАО11-15-2009 05:38 PM