<?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 Certain rows inputted incorrectly from a .txt file when they are no different from the other ones in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638690#M21596</link>
    <description>&lt;P&gt;So I have a .txt dataset with a space delimiter, but multiple spaces in one column, like so:&lt;/P&gt;&lt;PRE&gt;car                             Weight  Disp.   Mileage Fuel  Type 
               Eagle Summit 4   2560    97      33 3.030303 Small
                Ford Escort 4   2345   114      33 3.030303 Small
               Ford Festiva 4   1845    81      37 2.702703 Small
.
.
.
          Ford Thunderbird V6   3610   232      23 4.347826 Medium
       	     Hyundai Sonata 4   2885   143      23 4.347826 Medium
                 Mazda 929 V6   3480   180      21 4.761905 Medium
       	     Nissan Maxima V6   3200   180      22 4.545455 Medium
   Oldsmobile Cutlass Ciera 4   2765   151      21 4.761905 Medium&lt;/PRE&gt;&lt;P&gt;I thought I took care of it by specifying the length of the 'car' variable, and my code looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA car; 
	INFILE "/folders/myfolders/sasuser.v94/carfin.txt"
	FIRSTOBS = 2
	DLM = ''
	MISSOVER;
	LENGTH car $ 30;
	INPUT car &amp;amp; weight disp mileage fuel type $;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this happens:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-04-09 at 10.37.21 AM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38100i1738FC271482E35F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-04-09 at 10.37.21 AM.png" alt="Screen Shot 2020-04-09 at 10.37.21 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lines 43, 44, 46, and 48 are how this data is supposed to look like. You can see what they look like in the original .txt above.&lt;/P&gt;&lt;P&gt;Literally only these 2 rows are like this, every other one is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what the log looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         DATA car;
 74         INFILE "/folders/myfolders/sasuser.v94/carfin.txt"
 75         FIRSTOBS = 2
 76         DLM = ''
 77         MISSOVER;
 78         LENGTH car $ 30;
 79         INPUT car &amp;amp; weight disp mileage fuel type $;
 80         RUN;
 
 NOTE: The infile "/folders/myfolders/sasuser.v94/carfin.txt" is:
       Filename=/folders/myfolders/sasuser.v94/carfin.txt,
       Owner Name=sasdemo,Group Name=sas,
       Access Permission=-rw-rw-r--,
       Last Modified=09Apr2020:10:26:53,
       File Size (bytes)=4125
 
 NOTE: Invalid data for weight in line 46 14-20.
 NOTE: Invalid data for disp in line 46 22-27.
 RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
 
 46  CHAR         .     Hyundai Sonata 4   2885   143      23 4.347826 Medium 66
     ZONE  222222202222247766662566676232223333222333222222332323333332466676
     NUMR  0000000900000895E41903FE1410400028850001430000002304E3478260D5495D
 car= weight=. disp=. mileage=4 fuel=2885 type=143 _ERROR_=1 _N_=45
 NOTE: Invalid data for weight in line 48 14-19.
 NOTE: Invalid data for disp in line 48 21-26.
 NOTE: Invalid data for mileage in line 48 28-29.
 
 48  CHAR         .     Nissan Maxima V6   3200   180      22 4.545455 Medium 66
     ZONE  222222202222246776624676662532223333222333222222332323333332466676
     NUMR  0000000900000E9331E0D189D106600032000001800000002204E5454550D5495D
 car= weight=. disp=. mileage=. fuel=3200 type=180 _ERROR_=1 _N_=47
 NOTE: 60 records were read from the infile "/folders/myfolders/sasuser.v94/carfin.txt".
       The minimum record length was 63.
       The maximum record length was 67.
 NOTE: The data set WORK.CAR has 60 observations and 6 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 94  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using SAS University Edition and MacOS Mojave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading through this and for any advice!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 14:57:06 GMT</pubDate>
    <dc:creator>katsan</dc:creator>
    <dc:date>2020-04-09T14:57:06Z</dc:date>
    <item>
      <title>Certain rows inputted incorrectly from a .txt file when they are no different from the other ones</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638690#M21596</link>
      <description>&lt;P&gt;So I have a .txt dataset with a space delimiter, but multiple spaces in one column, like so:&lt;/P&gt;&lt;PRE&gt;car                             Weight  Disp.   Mileage Fuel  Type 
               Eagle Summit 4   2560    97      33 3.030303 Small
                Ford Escort 4   2345   114      33 3.030303 Small
               Ford Festiva 4   1845    81      37 2.702703 Small
.
.
.
          Ford Thunderbird V6   3610   232      23 4.347826 Medium
       	     Hyundai Sonata 4   2885   143      23 4.347826 Medium
                 Mazda 929 V6   3480   180      21 4.761905 Medium
       	     Nissan Maxima V6   3200   180      22 4.545455 Medium
   Oldsmobile Cutlass Ciera 4   2765   151      21 4.761905 Medium&lt;/PRE&gt;&lt;P&gt;I thought I took care of it by specifying the length of the 'car' variable, and my code looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA car; 
	INFILE "/folders/myfolders/sasuser.v94/carfin.txt"
	FIRSTOBS = 2
	DLM = ''
	MISSOVER;
	LENGTH car $ 30;
	INPUT car &amp;amp; weight disp mileage fuel type $;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this happens:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-04-09 at 10.37.21 AM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38100i1738FC271482E35F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-04-09 at 10.37.21 AM.png" alt="Screen Shot 2020-04-09 at 10.37.21 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lines 43, 44, 46, and 48 are how this data is supposed to look like. You can see what they look like in the original .txt above.&lt;/P&gt;&lt;P&gt;Literally only these 2 rows are like this, every other one is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what the log looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         DATA car;
 74         INFILE "/folders/myfolders/sasuser.v94/carfin.txt"
 75         FIRSTOBS = 2
 76         DLM = ''
 77         MISSOVER;
 78         LENGTH car $ 30;
 79         INPUT car &amp;amp; weight disp mileage fuel type $;
 80         RUN;
 
 NOTE: The infile "/folders/myfolders/sasuser.v94/carfin.txt" is:
       Filename=/folders/myfolders/sasuser.v94/carfin.txt,
       Owner Name=sasdemo,Group Name=sas,
       Access Permission=-rw-rw-r--,
       Last Modified=09Apr2020:10:26:53,
       File Size (bytes)=4125
 
 NOTE: Invalid data for weight in line 46 14-20.
 NOTE: Invalid data for disp in line 46 22-27.
 RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                      
 
 46  CHAR         .     Hyundai Sonata 4   2885   143      23 4.347826 Medium 66
     ZONE  222222202222247766662566676232223333222333222222332323333332466676
     NUMR  0000000900000895E41903FE1410400028850001430000002304E3478260D5495D
 car= weight=. disp=. mileage=4 fuel=2885 type=143 _ERROR_=1 _N_=45
 NOTE: Invalid data for weight in line 48 14-19.
 NOTE: Invalid data for disp in line 48 21-26.
 NOTE: Invalid data for mileage in line 48 28-29.
 
 48  CHAR         .     Nissan Maxima V6   3200   180      22 4.545455 Medium 66
     ZONE  222222202222246776624676662532223333222333222222332323333332466676
     NUMR  0000000900000E9331E0D189D106600032000001800000002204E5454550D5495D
 car= weight=. disp=. mileage=. fuel=3200 type=180 _ERROR_=1 _N_=47
 NOTE: 60 records were read from the infile "/folders/myfolders/sasuser.v94/carfin.txt".
       The minimum record length was 63.
       The maximum record length was 67.
 NOTE: The data set WORK.CAR has 60 observations and 6 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 81         
 82         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 94  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using SAS University Edition and MacOS Mojave.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading through this and for any advice!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 14:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638690#M21596</guid>
      <dc:creator>katsan</dc:creator>
      <dc:date>2020-04-09T14:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Certain rows inputted incorrectly from a .txt file when they are no different from the other one</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638699#M21597</link>
      <description>&lt;P&gt;Why do those two lines have tabs in them?&lt;/P&gt;
&lt;P&gt;Did you trying adding EXPANDTABS option to your INFILE statement?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:11:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638699#M21597</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-09T15:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Certain rows inputted incorrectly from a .txt file when they are no different from the other one</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638702#M21598</link>
      <description>&lt;P&gt;Thank you so much! Solved!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Certain-rows-inputted-incorrectly-from-a-txt-file-when-they-are/m-p/638702#M21598</guid>
      <dc:creator>katsan</dc:creator>
      <dc:date>2020-04-09T15:13:33Z</dc:date>
    </item>
  </channel>
</rss>

