<?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 How to inport a datafile with intergers and  long decimal digits in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233658#M42696</link>
    <description>&lt;P&gt;attached is the dataset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA data;
INFILE "......\data.txt";

INPUT  A 11.  B          ;

RUN;&lt;/PRE&gt;
&lt;P&gt;but the result is weird. some values are right, but some of them are false.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/783i756C469A99F88775/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="QQ截图20151108030305.png" title="QQ截图20151108030305.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log shows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;14 CHAR 10.20.00000001 14&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; ZONE 33033233333333&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; NUMR 10920E00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;A=. B=1 _ERROR_=1 _N_=13&lt;/FONT&gt;&lt;BR /&gt;NOTE: 16 records were read from the infile "\\client\E$\course&lt;BR /&gt; materials\continue\Homeworks\HW2\data.txt".&lt;BR /&gt; The minimum record length was 4.&lt;BR /&gt; The maximum record length was 24.&lt;BR /&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.DATA has 14 observations and 2 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.26 seconds&lt;BR /&gt; cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the matter of my code? and What does the former lines(in red) mean in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 08 Nov 2015 02:09:38 GMT</pubDate>
    <dc:creator>DingDing</dc:creator>
    <dc:date>2015-11-08T02:09:38Z</dc:date>
    <item>
      <title>How to inport a datafile with intergers and  long decimal digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233658#M42696</link>
      <description>&lt;P&gt;attached is the dataset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA data;
INFILE "......\data.txt";

INPUT  A 11.  B          ;

RUN;&lt;/PRE&gt;
&lt;P&gt;but the result is weird. some values are right, but some of them are false.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/783i756C469A99F88775/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="QQ截图20151108030305.png" title="QQ截图20151108030305.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log shows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;14 CHAR 10.20.00000001 14&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; ZONE 33033233333333&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt; NUMR 10920E00000001&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;A=. B=1 _ERROR_=1 _N_=13&lt;/FONT&gt;&lt;BR /&gt;NOTE: 16 records were read from the infile "\\client\E$\course&lt;BR /&gt; materials\continue\Homeworks\HW2\data.txt".&lt;BR /&gt; The minimum record length was 4.&lt;BR /&gt; The maximum record length was 24.&lt;BR /&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.DATA has 14 observations and 2 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.26 seconds&lt;BR /&gt; cpu time 0.03 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the matter of my code? and What does the former lines(in red) mean in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2015 02:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233658#M42696</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2015-11-08T02:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to inport a datafile with intergers and  long decimal digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233665#M42701</link>
      <description>&lt;P&gt;The values in your file are separated by tab characters and start on line 2. So you must read them with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data;
infile "......\Data.txt" dlm='09'x firstobs=2;
input a b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Nov 2015 05:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233665#M42701</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-08T05:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to inport a datafile with intergers and  long decimal digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233668#M42703</link>
      <description>Hi can you explain '09'x this ?</description>
      <pubDate>Sun, 08 Nov 2015 07:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233668#M42703</guid>
      <dc:creator>pearsoninst</dc:creator>
      <dc:date>2015-11-08T07:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to inport a datafile with intergers and  long decimal digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233671#M42705</link>
      <description>&lt;P&gt;Thanks MR. PGstats, it works!!&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2015 09:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233671#M42705</guid>
      <dc:creator>DingDing</dc:creator>
      <dc:date>2015-11-08T09:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to inport a datafile with intergers and  long decimal digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233678#M42707</link>
      <description>&lt;P&gt;'09'x is the hexadecimal representation of a tabulation character.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2015 16:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-inport-a-datafile-with-intergers-and-long-decimal-digits/m-p/233678#M42707</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-11-08T16:17:16Z</dc:date>
    </item>
  </channel>
</rss>

