<?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: Strange Behavior of COMMAXw.d informat in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41634#M10776</link>
    <description>Hi:&lt;BR /&gt;
  The ".4" in your informat tells SAS to insert a decimal point if it does not find one in the number it is reading. You can have the numbers treated correctly by removing the .4 from your informat. In fact, since you've given a length and a delimiter, you really don't need the 8 either. So these should both work:&lt;BR /&gt;
[pre]&lt;BR /&gt;
input rvqun : commax8. bzgzqrv;&lt;BR /&gt;
      &lt;BR /&gt;
input rvqun : commax. bzgzqrv;&lt;BR /&gt;
[/pre] &lt;BR /&gt;
         &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 25 Aug 2008 17:12:11 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-08-25T17:12:11Z</dc:date>
    <item>
      <title>Strange Behavior of COMMAXw.d informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41633#M10775</link>
      <description>The following produces wrong results;&lt;BR /&gt;
&lt;BR /&gt;
data ex_atos_tg261ha;&lt;BR /&gt;
   attrib rvqun length=8 bzgzqrv length=$6;&lt;BR /&gt;
   infile cards dlm=";" truncover;&lt;BR /&gt;
   input rvqun : commax8.4 bzgzqrv;&lt;BR /&gt;
cards4;&lt;BR /&gt;
0,5;01XXXX&lt;BR /&gt;
0,5;01XXXX&lt;BR /&gt;
32,5;&lt;BR /&gt;
30;&lt;BR /&gt;
28;&lt;BR /&gt;
26,5;&lt;BR /&gt;
32,5;&lt;BR /&gt;
0,5;01XXXX&lt;BR /&gt;
;;;;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Result:&lt;BR /&gt;
&lt;BR /&gt;
         Obs     rvqun     bzgzqrv&lt;BR /&gt;
 &lt;BR /&gt;
             1      0.5000    01XXXX&lt;BR /&gt;
             2      0.5000    01XXXX&lt;BR /&gt;
             3     32.5000&lt;BR /&gt;
             4      0.0030&lt;BR /&gt;
             5      0.0028&lt;BR /&gt;
             6     26.5000&lt;BR /&gt;
             7     32.5000&lt;BR /&gt;
             8      0.5000    01XXXX&lt;BR /&gt;
&lt;BR /&gt;
As you can see, obs 4 and 5 should be 30 and 28, respectively. I don't seem to find a proper informat. Can anyone help?&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
&lt;BR /&gt;
Mabitron</description>
      <pubDate>Mon, 25 Aug 2008 16:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41633#M10775</guid>
      <dc:creator>Mabitronics</dc:creator>
      <dc:date>2008-08-25T16:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Behavior of COMMAXw.d informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41634#M10776</link>
      <description>Hi:&lt;BR /&gt;
  The ".4" in your informat tells SAS to insert a decimal point if it does not find one in the number it is reading. You can have the numbers treated correctly by removing the .4 from your informat. In fact, since you've given a length and a delimiter, you really don't need the 8 either. So these should both work:&lt;BR /&gt;
[pre]&lt;BR /&gt;
input rvqun : commax8. bzgzqrv;&lt;BR /&gt;
      &lt;BR /&gt;
input rvqun : commax. bzgzqrv;&lt;BR /&gt;
[/pre] &lt;BR /&gt;
         &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 25 Aug 2008 17:12:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41634#M10776</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-08-25T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Behavior of COMMAXw.d informat</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41635#M10777</link>
      <description>Great, thanks!!&lt;BR /&gt;
&lt;BR /&gt;
MB</description>
      <pubDate>Tue, 26 Aug 2008 08:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Strange-Behavior-of-COMMAXw-d-informat/m-p/41635#M10777</guid>
      <dc:creator>Mabitronics</dc:creator>
      <dc:date>2008-08-26T08:44:08Z</dc:date>
    </item>
  </channel>
</rss>

