It is easy to transform a number into a alphanumeric value based on radix 16 in SAS by using the $HEX format. Now i'm looking for an easy way to do this with radix 36 (10 numerals & 26 letters).
Examples:
- 100 -> '2s'
- 2000 -> '1jk'
- 30000 -> 'n5c'
- 400000 -> '8kn4'
In Java you can do this by Integer.toString(mynumber, 36)
. Any ideas how to do this in SAS Base?