<?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 Re: Convert hex characterstring to numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51192#M10714</link>
    <description>The correct INFORMAT to use is IBn. (or PIBn.) combined with the INPUT function.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 02 Oct 2008 11:59:45 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2008-10-02T11:59:45Z</dc:date>
    <item>
      <title>Convert hex characterstring to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51191#M10713</link>
      <description>Greetings.&lt;BR /&gt;
&lt;BR /&gt;
I have a characterstring that represents a hexadecimal deviceaddress: "70DE"X. I'd now like to convert this hexadecimal to a numerical format and thought I could do it with INPUT("70DE"X,$HEX4.). But this doesn't work. The manual tells me that $HEXw. gives me character data and that's not what I want.&lt;BR /&gt;
&lt;BR /&gt;
I then tried INPUT("70DE"X,HEX4.) but that doesn't work either.It seems that the 1rst argument has to be numerical already which, of course, it isn't.&lt;BR /&gt;
&lt;BR /&gt;
So, how do I convert a characterstring representing a hexadecimal value into a numerical value? I've been going thru the manuals, but must admit that I haven't been able to find it.&lt;BR /&gt;
&lt;BR /&gt;
Tia.</description>
      <pubDate>Thu, 02 Oct 2008 11:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51191#M10713</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2008-10-02T11:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex characterstring to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51192#M10714</link>
      <description>The correct INFORMAT to use is IBn. (or PIBn.) combined with the INPUT function.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 02 Oct 2008 11:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51192#M10714</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-02T11:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert hex characterstring to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51193#M10715</link>
      <description>Thank you very much! It works!</description>
      <pubDate>Thu, 02 Oct 2008 12:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-hex-characterstring-to-numeric/m-p/51193#M10715</guid>
      <dc:creator>Willempie</dc:creator>
      <dc:date>2008-10-02T12:47:12Z</dc:date>
    </item>
  </channel>
</rss>

