<?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: informat&amp; format help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100200#M21023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding “$” in front of 49.28 for amount fix the problem. I think I you specify the dollar format all of you fields needs to have dollar($) sign. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testrun;&lt;/P&gt;&lt;P&gt;input invoice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount dollar9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity ;&lt;/P&gt;&lt;P&gt;format amount dollar9.2;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;12244 $1,499.99 144&lt;/P&gt;&lt;P&gt;32189 $20,000&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;92314 $49.28&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=testrun;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2013 13:53:07 GMT</pubDate>
    <dc:creator>zqkal</dc:creator>
    <dc:date>2013-10-02T13:53:07Z</dc:date>
    <item>
      <title>informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100198#M21021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: medium; font-family: 'Times New Roman'; color: #000000;"&gt;data step to read these data into three variables: Invoice, Amount, and Quantity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;12244 $1,499.99 144&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;32189 $20,000 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;92314 49.28 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have written the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data testrun;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;input invoice amount quantity;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;informat amount dollar9.2;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;cards;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;12244 $1,499.99 144&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;32189 $20,000 1&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;92314 49.28 3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;There is no errors in log but it is reading all observations.but it is not correct, What is the problem. Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 18:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100198#M21021</guid>
      <dc:creator>King</dc:creator>
      <dc:date>2013-10-01T18:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100199#M21022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dollar9.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 18:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100199#M21022</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-10-01T18:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100200#M21023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding “$” in front of 49.28 for amount fix the problem. I think I you specify the dollar format all of you fields needs to have dollar($) sign. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data testrun;&lt;/P&gt;&lt;P&gt;input invoice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount dollar9.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quantity ;&lt;/P&gt;&lt;P&gt;format amount dollar9.2;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;12244 $1,499.99 144&lt;/P&gt;&lt;P&gt;32189 $20,000&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;92314 $49.28&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=testrun;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 13:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100200#M21023</guid>
      <dc:creator>zqkal</dc:creator>
      <dc:date>2013-10-02T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100201#M21024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A missing $ sign is NOT the problem.&amp;nbsp; Do you think $20,000 is twenty thousand or $200.00?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100201#M21024</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-10-02T14:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100202#M21025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's $20,000 twenty thousand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:38:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100202#M21025</guid>
      <dc:creator>King</dc:creator>
      <dc:date>2013-10-02T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: informat&amp; format help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100203#M21026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What DATA_NULL_ is trying to point out is that for an INFORMAT the decimal part of the informat is the number of decimal places to apply when the value read does NOT contain a decimal point.&amp;nbsp; When you specify dollar9.2 you are telling SAS to divide the 20,000 value by 100 in order to implement the implied decimal place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use dollar9.0 for the informat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 14:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/informat-format-help/m-p/100203#M21026</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-10-02T14:40:09Z</dc:date>
    </item>
  </channel>
</rss>

