title: Convert hexadecimal characters (more than 16 bytes) to decimal number in SAS
body: <p>Hi I have a SAS character column called Hexchar contains hexadecimal character "0x1ba0c56c966ee8b0000" This is actually 8154350000000000000000 in decimal number. And I want to convert "0x1ba0c56c966ee8b0000" to 8154350000000000000000. If the hexadecimal is less than 16 bytes then the following function does the job.</p>
  
  <pre><code>DexNumber=input(substr(Hexchar,3), hex16.); /* The reason why substr() function is to skip "0x" in the front */
  </code></pre>
  
  <p>However hex format is limited only to 16 bytes and not handle more bytes. Do you know any good logic to convert this?</p>