<?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: Special characters in tab delimited file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166857#M43213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Tom.&amp;nbsp; I don't have any control over this file.&amp;nbsp; There has been a larger discussion about putting the notes last so this isn't an issue but things move slowly here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 22:00:19 GMT</pubDate>
    <dc:creator>Ryanb2</dc:creator>
    <dc:date>2015-02-12T22:00:19Z</dc:date>
    <item>
      <title>Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166855#M43211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to import a large tab delimited file which contains a notes field for which some records have special characters that seem to look like tabs.&amp;nbsp; When SAS imports this field for a record with a special character everything after the special character is assigned to the next field, and the rest of the data is pushed further downstream with each special character included.&amp;nbsp; Is there a way to ignore these special characters in the import?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've experimented with importing the file line by line and removing the special characters, but when I export the data it loses the tabs and the first line is removed.&amp;nbsp; Any code examples that will remove the special characters while keeping all of the characteristics of the text file would be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166855#M43211</guid>
      <dc:creator>Ryanb2</dc:creator>
      <dc:date>2015-02-12T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166856#M43212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the value of the field includes the delimiter then the value should be enclosed in quotes.&amp;nbsp; If it is not then see if you can have the file re-generated with proper formatting.&amp;nbsp; If they cannot generate the file with quotes around values that contain the delimiter then ask them to use a different character as the delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see the actual values in the file you can use a DATA _NULL_ step with the LIST statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile 'myfile.txt' firstobs=1 nobs=10 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; list;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166856#M43212</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-12T21:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166857#M43213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Tom.&amp;nbsp; I don't have any control over this file.&amp;nbsp; There has been a larger discussion about putting the notes last so this isn't an issue but things move slowly here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 22:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166857#M43213</guid>
      <dc:creator>Ryanb2</dc:creator>
      <dc:date>2015-02-12T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166858#M43214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be forceful with them.&amp;nbsp; Without proper formatting the file could be totally un readable.&lt;/P&gt;&lt;P&gt;If there is just one field that could have multiple tabs then you can fix it by parsing out the fields before and after the field with tabs first.&lt;/P&gt;&lt;P&gt;Search the forum as this question has been asked many times already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 00:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166858#M43214</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-13T00:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166859#M43215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the least of their problems.&amp;nbsp; I think this is number 348 on the list of things to do.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen a few discussions but no solutions.&amp;nbsp; It's hard to find the right keyword search combinations to cut through all of the other topics addressed by the same keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 00:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166859#M43215</guid>
      <dc:creator>Ryanb2</dc:creator>
      <dc:date>2015-02-13T00:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters in tab delimited file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166860#M43216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this problem with spaces instead of tabs as the delimiter.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="206029" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 01:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Special-characters-in-tab-delimited-file/m-p/166860#M43216</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-13T01:46:35Z</dc:date>
    </item>
  </channel>
</rss>

