<?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: Problem reading Reading text file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30271#M5759</link>
    <description>You could add the INFILE option TERMSTR with no need to fiddle with the input file(s).&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
   infile ..... termstr=crlf;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 12 May 2009 11:14:28 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-05-12T11:14:28Z</dc:date>
    <item>
      <title>Problem reading Reading text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30269#M5757</link>
      <description>Hi Everyone,&lt;BR /&gt;
                     I am trying to read comma delimited text file. The SAS dataset reads a "square sign" in the last column.  How do I get rid of it.&lt;BR /&gt;
&lt;BR /&gt;
 infile '/path/data.txt' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;BR /&gt;
&lt;BR /&gt;
 Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Mon, 11 May 2009 23:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30269#M5757</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2009-05-11T23:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading Reading text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30270#M5758</link>
      <description>It's likely the end-of-line character for a record from the PC .csv file that was copied to Unix.  Check out this thread:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/message.jspa?messageID=20381#20381" target="_blank"&gt;http://support.sas.com/forums/message.jspa?messageID=20381#20381&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If that is not it, tell us more about your platform and the data sources.</description>
      <pubDate>Mon, 11 May 2009 23:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30270#M5758</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-05-11T23:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading Reading text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30271#M5759</link>
      <description>You could add the INFILE option TERMSTR with no need to fiddle with the input file(s).&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
   infile ..... termstr=crlf;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 12 May 2009 11:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30271#M5759</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-05-12T11:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading Reading text file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30272#M5760</link>
      <description>add '0A'x as delimiter on infile.[pre]infile '/path/data.txt' delimiter= '2c0d'x  MISSOVER DSD lrecl= 32767 firstobs= 2 ;[/pre]Then if any '0D'x disappear, the ''0A'x on its own will still act as a line terminator.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 12 May 2009 13:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-reading-Reading-text-file/m-p/30272#M5760</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-05-12T13:05:34Z</dc:date>
    </item>
  </channel>
</rss>

