<?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: Reading in a pipe delimited, unicode text file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193445#M48581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a unix feature, it's been years since I was working with this frequently so I don't remember what it represents...a tab or enter I think.&amp;nbsp; If you have putty, bluezone or any other unix access you want to vi into the file and copy paste into the vi editor, the Z is case sensitive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:%s/^Z//g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 11:05:20 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-05-27T11:05:20Z</dc:date>
    <item>
      <title>Reading in a pipe delimited, unicode text file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193443#M48579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a series of files that are pipe delimited text files. However sas is reading in some special characters at the beginning of the file that show up as "&amp;lt;U+EEFF&amp;gt;".&amp;nbsp; I assume this means the files are unicode.&amp;nbsp; I have tried a file name statement with encoding="unicode" and encoding="UTF-8".&amp;nbsp; It works at some level, but the file now has a ^z at the beginning.&amp;nbsp; I thought it may be the kind of unicode being used, so I tried all of the different codes listed in the sas help documentation. None work.&amp;nbsp; I have searched though the discussion, but haven't been able to solve it from what I have found so far. Is it possibly some other version of encoding?&amp;nbsp; Is there a way to strip all special characters? Any other suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Here is the code I am trying to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME ABC "OLDFILE.TXT" ENCODING="UTF-8"; ******HAVE TRIED MANY DIFFERENT ENCODING TYPES***********;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE = ABC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT=NEWDATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=DLM REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELIMITER='|';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GETNAMES=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAROW=2;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Donald Hale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 21:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193443#M48579</guid>
      <dc:creator>Don</dc:creator>
      <dc:date>2015-05-26T21:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in a pipe delimited, unicode text file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193444#M48580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide an example of the code you are running, especially the one that came closest to what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are reading the files using a wildcard the ^z may be coming from the end of a previous file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 21:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193444#M48580</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-26T21:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading in a pipe delimited, unicode text file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193445#M48581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a unix feature, it's been years since I was working with this frequently so I don't remember what it represents...a tab or enter I think.&amp;nbsp; If you have putty, bluezone or any other unix access you want to vi into the file and copy paste into the vi editor, the Z is case sensitive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:%s/^Z//g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 11:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-in-a-pipe-delimited-unicode-text-file/m-p/193445#M48581</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-05-27T11:05:20Z</dc:date>
    </item>
  </channel>
</rss>

