<?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: When read integer 12, it errors to read like 0.000012 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372817#M89180</link>
    <description>&lt;P&gt;post you code with your input data and you log.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2017 19:29:49 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2017-07-03T19:29:49Z</dc:date>
    <item>
      <title>When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372815#M89179</link>
      <description>&lt;P&gt;Dear Friends and experts.&lt;/P&gt;&lt;P&gt;Good evening.&lt;/P&gt;&lt;P&gt;I could not solve this problem.&lt;/P&gt;&lt;P&gt;Sometimes it read correctly but this time it produce data like above.&lt;/P&gt;&lt;P&gt;Reading real numbers has no problem.&lt;/P&gt;&lt;P&gt;Help me, please&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 19:24:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372815#M89179</guid>
      <dc:creator>eun</dc:creator>
      <dc:date>2017-07-03T19:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372817#M89180</link>
      <description>&lt;P&gt;post you code with your input data and you log.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 19:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372817#M89180</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-07-03T19:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372818#M89181</link>
      <description>&lt;P&gt;Please provide a reproducible example. Are you reading data with an informat?&amp;nbsp;Is this in the DATA step? Are you reading from a text file? An Excel spreadsheet? etc,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 19:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372818#M89181</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-07-03T19:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372857#M89184</link>
      <description>&lt;P&gt;Use best12&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using something such as 8.3 it assumes you MUST always have 3 decimal points and reads it accordingly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 20:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/372857#M89184</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-03T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373064#M89239</link>
      <description>&lt;P&gt;Most likely you have accidentally used an INFORMAT that includes .6 on the end. The meaning of the decimal part on a INFORMAT is different than the meaning of the decimal part on a FORMAT. &amp;nbsp;When a decimal part is specified on a INFORMAT it tells SAS where to put an implied decimal point when the input text does not have one. Basically it tells SAS how many powers of ten to divide integers by.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have ;
  input @1 normal 32. @1 wrong 32.6 ;
  format _numeric_ 32.6 ;
cards;
12
12.34
0.000012
;
proc print;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373064#M89239</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-04T19:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373531#M89370</link>
      <description>&lt;P&gt;Dear guys,&lt;/P&gt;&lt;P&gt;My coding likes below;&lt;/P&gt;&lt;P&gt;Infile 'AA.csv'&amp;nbsp;delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2;&lt;/P&gt;&lt;P&gt;Informat B1 Best12.6; Format B1 Best12.6;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Informat B2 Best12.6; Format B2 Best12.6;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;input B1 B2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373531#M89370</guid>
      <dc:creator>eun</dc:creator>
      <dc:date>2017-07-06T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: When read integer 12, it errors to read like 0.000012</title>
      <link>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373533#M89372</link>
      <description>&lt;P&gt;Thank you for your kind help.&lt;/P&gt;&lt;P&gt;It workd after I changed the informat and format of variable from Best12.6 to Best 12.&lt;/P&gt;&lt;P&gt;But would you let me know what to be careful when I use those formats.&lt;/P&gt;&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/When-read-integer-12-it-errors-to-read-like-0-000012/m-p/373533#M89372</guid>
      <dc:creator>eun</dc:creator>
      <dc:date>2017-07-06T08:25:40Z</dc:date>
    </item>
  </channel>
</rss>

