<?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: input function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335066#M75758</link>
    <description>&lt;P&gt;Use the 20. informat. It will respect a dot in the input string, but not force the division by 10**2 as the 20.2 informat does.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2017 18:39:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-22T18:39:27Z</dc:date>
    <item>
      <title>input function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335060#M75753</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an amount MT, which I extract from a file.&lt;/P&gt;&lt;P&gt;So at the beginning my amount is a char value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To transform it I use the following function:&lt;/P&gt;&lt;PRE&gt;input (MT, 20.2)&lt;/PRE&gt;&lt;P&gt;The problem is, it doesn't work efficiantely.&lt;/P&gt;&lt;P&gt;All of my amounts are actually numbers. In the file I will receive for exemple 186 instead of 186.00.&lt;/P&gt;&lt;P&gt;Nevertheless I don't want to treat them like number because they are amounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the input function like this the results is the amount divided by 100. To come back to the previous example, in my output table I will have 1.86 instead of 186.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 18:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335060#M75753</guid>
      <dc:creator>fabdu92</dc:creator>
      <dc:date>2017-02-22T18:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: input function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335066#M75758</link>
      <description>&lt;P&gt;Use the 20. informat. It will respect a dot in the input string, but not force the division by 10**2 as the 20.2 informat does.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 18:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335066#M75758</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-22T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: input function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335068#M75760</link>
      <description>&lt;P&gt;Use a BEST format instead of 20.2.&lt;/P&gt;
&lt;P&gt;When you use 20.2 it always expects 2 decimal places, BEST will look at what it is. You can format it after to look like whatever you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;new_MT = input (MT, best32.);
format new_MT 20.2;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 18:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/input-function/m-p/335068#M75760</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-22T18:40:03Z</dc:date>
    </item>
  </channel>
</rss>

