<?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 SAS informat with decimal in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143002#M1373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this paper:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/publishing/pubcat/chaps/59498.pdf" title="http://support.sas.com/publishing/pubcat/chaps/59498.pdf"&gt;http://support.sas.com/publishing/pubcat/chaps/59498.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This pharagraph:&lt;/P&gt;&lt;P&gt;Line 3 uses the numeric informat 8.2. The w.d informat provides instruction to read&lt;/P&gt;&lt;P&gt;the numeric data having a total width of 8 (8 columns) with two digits to the right of&lt;/P&gt;&lt;P&gt;the decimal point. SAS will insert a decimal point only if it does not encounter a&lt;/P&gt;&lt;P&gt;decimal point in the specified w columns.&lt;STRONG&gt; Therefore, we could have coded the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;informat as 8. or 8.2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How come 8. and 8.2 are the same? 8. will truncate the decimal portion of the input, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 19:46:26 GMT</pubDate>
    <dc:creator>eagles_dare13</dc:creator>
    <dc:date>2014-07-30T19:46:26Z</dc:date>
    <item>
      <title>SAS informat with decimal</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143002#M1373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this paper:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/publishing/pubcat/chaps/59498.pdf" title="http://support.sas.com/publishing/pubcat/chaps/59498.pdf"&gt;http://support.sas.com/publishing/pubcat/chaps/59498.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This pharagraph:&lt;/P&gt;&lt;P&gt;Line 3 uses the numeric informat 8.2. The w.d informat provides instruction to read&lt;/P&gt;&lt;P&gt;the numeric data having a total width of 8 (8 columns) with two digits to the right of&lt;/P&gt;&lt;P&gt;the decimal point. SAS will insert a decimal point only if it does not encounter a&lt;/P&gt;&lt;P&gt;decimal point in the specified w columns.&lt;STRONG&gt; Therefore, we could have coded the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;informat as 8. or 8.2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How come 8. and 8.2 are the same? 8. will truncate the decimal portion of the input, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143002#M1373</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-07-30T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS informat with decimal</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143003#M1374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Informat 8.2 has width of 8, 5 digits before decimal one for decimal and remaining two after decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input num 8.2;&lt;BR /&gt;datalines;&lt;BR /&gt;29453.83&lt;BR /&gt;23.3&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input num 8.;&lt;BR /&gt;datalines;&lt;BR /&gt;29453.83&lt;BR /&gt;23.3&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143003#M1374</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-30T20:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS informat with decimal</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143004#M1375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that "Informat 8.2 has width of 8, 5 digits before decimal one for decimal and remaining two after decimal"...but question is different..how come 8. and 8.2 are same as suggested by the article?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143004#M1375</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2014-07-30T20:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS informat with decimal</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143005#M1376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Informats 8. and 8.2 give the same result whenever the incoming data already contains a decimal point.&amp;nbsp; They produce different results when the incoming data contains no decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an informat, 8. will not truncate anything.&amp;nbsp; It reads 8 characters and takes whatever it finds as the value.&amp;nbsp; It respects decimal points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an informat, 8.2 reads the same 8 characters.&amp;nbsp; If they contain a decimal point, the result is the same as using the 8. informat.&amp;nbsp; However, if there is no decimal point, 8.2 assumes that the list 2 digits read should fall after the decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As formats instead of informats, the process is different.&amp;nbsp; That's another question for another day, but it might be related to your assumption that 8. will truncate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-informat-with-decimal/m-p/143005#M1376</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2014-07-30T20:46:44Z</dc:date>
    </item>
  </channel>
</rss>

