<?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: rounding prevention of hex. in 'input' context in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376755#M276640</link>
    <description>Thanks. Subsequent usage says that it is using 1000 instead of 1035, for example.</description>
    <pubDate>Mon, 17 Jul 2017 20:28:29 GMT</pubDate>
    <dc:creator>capam</dc:creator>
    <dc:date>2017-07-17T20:28:29Z</dc:date>
    <item>
      <title>rounding prevention of hex. in 'input' context</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376704#M276637</link>
      <description>&lt;P&gt;I'm using the following command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUBID_IN_HEX = input(SUBID_IN_HEX,hex.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I input as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SUBID_IN_HEX = input('33b',hex.); &lt;SPAN&gt;SUBID_IN_HEX = 827 which is correct. However if I input&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SUBID_IN_HEX = input('40b',hex.);&amp;nbsp;SUBID_IN_HEX =&amp;nbsp;1E3 which should be 1035. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How do I correct the code to ensure no rounding/approximations occur? The digits may go to &amp;gt; 10.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 18:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376704#M276637</guid>
      <dc:creator>capam</dc:creator>
      <dc:date>2017-07-17T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: rounding prevention of hex. in 'input' context</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376719#M276638</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far, there is not conclusive evidence that any rounding has taken place.&amp;nbsp; You may just need to user a wider format for printing the value of SUBID_IN_HEX.&amp;nbsp; Try printing with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;format SUBID_IN_HEX 4.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376719#M276638</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-17T19:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: rounding prevention of hex. in 'input' context</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376736#M276639</link>
      <description>&lt;P&gt;You apparently have assigned a 3 column format to the variable somewhere. Please see:&lt;/P&gt;
&lt;PRE&gt;data junk;
   v = input('40b',hex.); 
   put 'Fixed 3 column format: ' + 1v= f3. +1 'Best format allowing 6 columns: ' +1v= best6.;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jul 2017 19:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376736#M276639</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-17T19:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: rounding prevention of hex. in 'input' context</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376755#M276640</link>
      <description>Thanks. Subsequent usage says that it is using 1000 instead of 1035, for example.</description>
      <pubDate>Mon, 17 Jul 2017 20:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376755#M276640</guid>
      <dc:creator>capam</dc:creator>
      <dc:date>2017-07-17T20:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: rounding prevention of hex. in 'input' context</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376868#M276641</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;. Formatting is likely to be the issue, not the value. Or you havent told us everything.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data _null_;
  SUBID_IN_HEX = input('40b',hex.); 
  putlog SUBID_IN_HEX =;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SUBID_IN_HEX=1035&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 05:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rounding-prevention-of-hex-in-input-context/m-p/376868#M276641</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-07-18T05:59:05Z</dc:date>
    </item>
  </channel>
</rss>

