<?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 Reading in .txt file with delimiter where lines wrap in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748559#M29533</link>
    <description>&lt;P&gt;I have a .txt file from our data provider that I am trying to read in. The file uses ! as its delimiter; and while most observations fit on a line, some observations wrap. Are there any tricks to reading this data in so that these wrapped lines do not show up as separate obseravations?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jun 2021 20:44:41 GMT</pubDate>
    <dc:creator>raivester</dc:creator>
    <dc:date>2021-06-16T20:44:41Z</dc:date>
    <item>
      <title>Reading in .txt file with delimiter where lines wrap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748559#M29533</link>
      <description>&lt;P&gt;I have a .txt file from our data provider that I am trying to read in. The file uses ! as its delimiter; and while most observations fit on a line, some observations wrap. Are there any tricks to reading this data in so that these wrapped lines do not show up as separate obseravations?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 20:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748559#M29533</guid>
      <dc:creator>raivester</dc:creator>
      <dc:date>2021-06-16T20:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in .txt file with delimiter where lines wrap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748561#M29534</link>
      <description>&lt;P&gt;Are you sure that the lines "wrap" to a new line? Some file viewers depending on settings will make it appear that a line continues on the next when it is still a single line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quick test would be to use proc import with the file and tell it to use the ! character as a delimiter and see if you get data more or less as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "tricks" would involve the specific files and why the wrap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 20:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748561#M29534</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-16T20:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in .txt file with delimiter where lines wrap</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748604#M29537</link>
      <description>&lt;P&gt;The details will make the difference. If a single logical row of data can really be written physically on two lines exactly like in below sample then FLOWOVER might do the job for you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
  infile datalines flowover dlm='!';
  input a b c;
  datalines;
1!2!3
4!5
6
7
8!9
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Jun 2021 04:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reading-in-txt-file-with-delimiter-where-lines-wrap/m-p/748604#M29537</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-06-17T04:45:45Z</dc:date>
    </item>
  </channel>
</rss>

