Answers to: Version number formattinghttps://jazz.net/forum/questions/65762/version-number-formattingWe are on RAM v7.5. Help page / infocenter (http://publib.boulder.ibm.com/infocenter/ramhelp/v7r5m0/topic/com.ibm.ram.doc/topics/r_version_format.html?resultof=%22%76%65%72%73%69%6f%6e%22%20%22%6e%75%6d%62%65%72%22%20) that creates a number of confusion / questions for us:
<br />
<br />1) Does RAM understand 'One' as numeric 1. How does it know that MilestoneThree is after MilestoneTwo?
<br />2) If the answer to (1) is true, then how does RAM differentiate between a name &quot;One&quot; from number &quot;One&quot;?
<br />3) Should we avoid using padded zero in version number because RAM will treat them as strings?
<br />4) What is the heuristics that apply to version number? based on ascii sequence?
<br />
<br />Why do we want to know? Because we want to build a function to determine the latest version for a given asset. Therefore, we would like to know how RAM works in this regards.
<br />
<br />Thanks!
<br />
<br />DavidenTue, 25 Oct 2011 10:26:15 -0400Answer by richkulphttps://jazz.net/forum/questions/65762/version-number-formatting/65763Hi,<br /><br />RAM doesn't understand spelling of numbers. The only format it <br />understands is:<br /><br />999.999.999...letters<br /><br />Where 999 are any number of digits, and ... means repeating groups of <br />digits.<br /><br />What it does is break it down into groups of digits separated by <br />periods. The first non-digit, non-period it finds terminates the break <br />of groups of digits.<br /><br />It then orders by each group, first all ordered by the first group of <br />digits, then for those that have the same first group of digits are <br />ordered by the second group. For all that have the same first and second <br />group of digits they are then ordered by the third. And so on. And then <br />finally those that have all the same groups of digits are then ordered <br />in the current users locale's standard collation of the characters. I.e. <br />N &gt; M &gt; L. This since it is using UTF characters collation this will <br />take into account non-ascii also.<br /><br />Don't pad with zeroes because then the numbers will be in radix 8 (octal).<br /><br />-- <br />Rich Kulp<br />Rational Asset Manager developerrichkulpTue, 25 Oct 2011 10:26:15 -0400https://jazz.net/forum/questions/65762/version-number-formatting/65763