<?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: Import raw text file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267220#M18516</link>
    <description>&lt;P&gt;If your SAS is running on Windows, there is another possibility that your text file has embedded with &amp;nbsp;'end of file' unprinted symbol, namely '1A'x.&amp;nbsp;In this case, you need to tell&amp;nbsp;SAS to ignore it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile test ignoredoseof;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2016 13:37:55 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2016-04-29T13:37:55Z</dc:date>
    <item>
      <title>Import raw text file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267215#M18513</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to import a bad text raw data file in SAS EG using Infile statement. The file has 100,000 rows but when I import it imports only 2000 rows. I looked into the text file and saw that 2001 row there is a ‘arrow’ sign in the middle of the data. May be that’s the reason it’s not importing from this row onwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way we can import all the data even if there are some characters..?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 13:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267215#M18513</guid>
      <dc:creator>AnnaShami</dc:creator>
      <dc:date>2016-04-29T13:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import raw text file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267217#M18514</link>
      <description>&lt;P&gt;You could try pre-processing the file to exclude any characters you don't need, something like:&lt;/P&gt;
&lt;PRE&gt;data _null_;
     infile "C:\test.txt" recfm=n;
     file "C:\NEW_Test.txt" recfm=n;
     input a $char1.;
     put compress(a,"","knpu");
     put a $char1.;
run;
&lt;/PRE&gt;
&lt;P&gt;So the file is read one character at a time. &amp;nbsp;The compress should keep (k) numeric+chars (n), punctuation (p), and uppercase (u), and then write that out again. &amp;nbsp;You can then read in the NEW_Test.txt file without special characters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 13:28:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267217#M18514</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-29T13:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import raw text file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267220#M18516</link>
      <description>&lt;P&gt;If your SAS is running on Windows, there is another possibility that your text file has embedded with &amp;nbsp;'end of file' unprinted symbol, namely '1A'x.&amp;nbsp;In this case, you need to tell&amp;nbsp;SAS to ignore it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile test ignoredoseof;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 13:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267220#M18516</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-04-29T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Import raw text file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267226#M18518</link>
      <description>&lt;P&gt;Thanks. It worked &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So&amp;nbsp;is this the unprinted sign and we don't see it&amp;nbsp;in the&amp;nbsp;file? That is tricky..how do we know that all the data is not getting imported because of some wierd character or is it odd sign/symbol or because of end of file symbol?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 13:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267226#M18518</guid>
      <dc:creator>AnnaShami</dc:creator>
      <dc:date>2016-04-29T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import raw text file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267232#M18519</link>
      <description>&lt;P&gt;I am afraid that there really is no easy programmable way to tell. I would reach out to the data provider get some metadata information, at least on ballpark level, such as how many records,&amp;nbsp;fields&amp;nbsp;in total etc, and understanding how the data is generated also helps, for instance, if you know you are get whole year of data that is collected on monthly basis,&amp;nbsp;then there is a chance of your having 'end of file' symbol embedded.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 14:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-raw-text-file/m-p/267232#M18519</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-04-29T14:09:38Z</dc:date>
    </item>
  </channel>
</rss>

