<?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: SAS read text file(s) with unknown delimiters, and unknown lengths? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239906#M3523</link>
    <description>Proc Import and then use the code created. Let the computer take the first guess.</description>
    <pubDate>Fri, 18 Dec 2015 03:03:09 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-12-18T03:03:09Z</dc:date>
    <item>
      <title>SAS read text file(s) with unknown delimiters, and unknown lengths?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239849#M3522</link>
      <description>&lt;P style="line-height: 15pt;"&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica&amp;quot;,sans-serif; font-size: 10.5pt;"&gt;I am searching my file system&amp;nbsp;mining for metadata,&amp;nbsp;am looking at all old txt files in this&amp;nbsp;iteration.&amp;nbsp; &lt;STRONG&gt;&lt;SPAN&gt;Thus I am in this case trying to read txt files with per file an unknown delimiter, and unknown length.&amp;nbsp; Is there a preferred method (function) to go about this?&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;I was thinking a whole line at a time, but am open to ideas. -Keith&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="line-height: 15pt;"&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: &amp;quot;Helvetica&amp;quot;,sans-serif; font-size: 10.5pt;"&gt;(I have already done the work for many other file extensions with easily extractable metadata)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239849#M3522</guid>
      <dc:creator>kjohnsonm</dc:creator>
      <dc:date>2015-12-17T21:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS read text file(s) with unknown delimiters, and unknown lengths?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239906#M3523</link>
      <description>Proc Import and then use the code created. Let the computer take the first guess.</description>
      <pubDate>Fri, 18 Dec 2015 03:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239906#M3523</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-18T03:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS read text file(s) with unknown delimiters, and unknown lengths?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239925#M3524</link>
      <description>&lt;P&gt;I would define a small set of possible delimiters and do a character count for each candidate delimiter within the first, say, 20 lines of the file. If none of the delimiters appears, I would assume that the file is delimited by spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another more subtle approach would use the fact that delimiters should occur at the same frequency on every line.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 04:18:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/SAS-read-text-file-s-with-unknown-delimiters-and-unknown-lengths/m-p/239925#M3524</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-18T04:18:58Z</dc:date>
    </item>
  </channel>
</rss>

