<?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: inputing a file with different delimiters in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706720#M26387</link>
    <description>Thank you. I will surely remember that.</description>
    <pubDate>Thu, 17 Dec 2020 17:22:02 GMT</pubDate>
    <dc:creator>Rups_b</dc:creator>
    <dc:date>2020-12-17T17:22:02Z</dc:date>
    <item>
      <title>inputing a file with different delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706712#M26385</link>
      <description>&lt;P&gt;How can I read these two files with several types of delimiters?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 17:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706712#M26385</guid>
      <dc:creator>Rups_b</dc:creator>
      <dc:date>2020-12-17T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: inputing a file with different delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706719#M26386</link>
      <description>&lt;P&gt;The DLM option on an infile statement will take multiple characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However every time any of those characters are encountered it will be treated as a delimiter. So if those characters have any other use in some place in the file you need to be very explicit about parsing rules.&lt;/P&gt;
&lt;PRE&gt;data example;
   infile datalines dlm="~/\|&amp;amp;:-*=,_'";
   informat id $5. Name $10. value best10.;
   input id name value;
datalines;
101~lily\5000
102&amp;amp;jasmine|3000
103:rose/7000
101-lily*5000
102=jasmine,3000
103_rose'7000
;&lt;/PRE&gt;
&lt;P&gt;If someone has both single and double quotes the '&amp;nbsp;&amp;nbsp; and " as delimiters then you are going to need the DLM string to use the "enter two quotes to be used as one" that is very old school coding:&lt;/P&gt;
&lt;PRE&gt;dlm="~/\|&amp;amp;:-*=,_'"""&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, for just a few lines of text copy and paste into a text box opened on the forum with the &amp;lt;/&amp;gt;.&lt;/P&gt;
&lt;P&gt;Note: Anybody sending me a file with that kind of "delimiters" is likely to be met with severe disapproval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 17:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706719#M26386</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-17T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: inputing a file with different delimiters</title>
      <link>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706720#M26387</link>
      <description>Thank you. I will surely remember that.</description>
      <pubDate>Thu, 17 Dec 2020 17:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/inputing-a-file-with-different-delimiters/m-p/706720#M26387</guid>
      <dc:creator>Rups_b</dc:creator>
      <dc:date>2020-12-17T17:22:02Z</dc:date>
    </item>
  </channel>
</rss>

