<?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: How to import multiple delimiters file ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560468#M156733</link>
    <description>&lt;P&gt;proc import&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;dlm = '3B09'x&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2019 12:44:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-05-21T12:44:44Z</dc:date>
    <item>
      <title>How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560385#M156690</link>
      <description>&lt;P&gt;How to&amp;nbsp;import a .txt file which has both&amp;nbsp;semicolon and tab as&amp;nbsp;delimiters ?&lt;/P&gt;&lt;P&gt;I have tried dlm = "; '09'x" but happened to an error. Can somebody give me any hints?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 07:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560385#M156690</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2019-05-21T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560397#M156698</link>
      <description>&lt;P&gt;Hope this will help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use the &lt;CODE class=" language-sas"&gt;dlmstr=';' &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifies either a character string or the value of a character variable as the delimiter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a; 
   infile 'C:\sas\example1.csv' dlm='09'x dlmstr=';' dsd truncover; 
   input fname $ lname $ age; 
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2019 08:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560397#M156698</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-21T08:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560454#M156727</link>
      <description>&lt;P&gt;Please post a few lines of your .txt file into a window opened with the {i} button, so we have something to test code against.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 11:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560454#M156727</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-21T11:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560468#M156733</link>
      <description>&lt;P&gt;proc import&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;dlm = '3B09'x&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 12:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560468#M156733</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-21T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560476#M156739</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270406"&gt;@whymath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How to&amp;nbsp;import a .txt file which has both&amp;nbsp;semicolon and tab as&amp;nbsp;delimiters ?&lt;/P&gt;
&lt;P&gt;I have tried dlm = "; '09'x" but happened to an error. Can somebody give me any hints?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can either find the hexcode for semi-colon (3B) and include it in your hex literal along with the 09 for the tab character.&lt;/P&gt;
&lt;P&gt;Or you can use a variable to hold the list of delimiters.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dlm=';' || '09'x ;
infile .... dlm=dlm ... ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that if you use a variable to hold the list of delimiter characters then you can actually change it during the data step.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 12:54:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560476#M156739</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-21T12:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560708#M156864</link>
      <description>Thanks, that works.</description>
      <pubDate>Wed, 22 May 2019 02:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560708#M156864</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2019-05-22T02:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560709#M156865</link>
      <description>The dlmstr=';' may cover the dlm='09'x</description>
      <pubDate>Wed, 22 May 2019 02:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560709#M156865</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2019-05-22T02:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple delimiters file ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560710#M156866</link>
      <description>I will do it next time, thanks for your kindly remind.</description>
      <pubDate>Wed, 22 May 2019 02:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-multiple-delimiters-file/m-p/560710#M156866</guid>
      <dc:creator>whymath</dc:creator>
      <dc:date>2019-05-22T02:30:05Z</dc:date>
    </item>
  </channel>
</rss>

