<?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: Gargabe Character in Flat file: Please Help in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Gargabe-Character-in-Flat-file-Please-Help/m-p/3405#M1468</link>
    <description>Hi,&lt;BR /&gt;
  This is not really an ODS question -- it is more of a DATA step/INFILE/Operating System question. Your best bet for a quick response to questions like this is to contact Tech Support. It is possible that this is not really garbage data, but is related to DBCS (double byte character set) characters or NLS encoding issues -- which is something that Tech Support is best equipped to handle.&lt;BR /&gt;
 &lt;BR /&gt;
  To find out how to contact Tech Support, refer to:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Good luck,&lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 12 Jun 2007 20:38:53 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-06-12T20:38:53Z</dc:date>
    <item>
      <title>Gargabe Character in Flat file: Please Help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Gargabe-Character-in-Flat-file-Please-Help/m-p/3404#M1467</link>
      <description>I need some help reading a flat file which consists of a "garbabe character" in few observations.&lt;BR /&gt;
Basically I get a text file which I  ftp to a unix server. Once the file gets to the server, i use dos2unix command to change it to a unix file and then read the file with infile statement.&lt;BR /&gt;
&lt;BR /&gt;
The flat file(testfile) before dos2unix looks like.Notice the "?" characters.&lt;BR /&gt;
&lt;BR /&gt;
31?PHR&lt;BR /&gt;
?PARKWAY &lt;BR /&gt;
?PT0&lt;BR /&gt;
DE?T&lt;BR /&gt;
L?PHD&lt;BR /&gt;
L?PHD&lt;BR /&gt;
S?PT&lt;BR /&gt;
?PO&lt;BR /&gt;
&lt;BR /&gt;
Once i use dos2unix command the file looks as this:&lt;BR /&gt;
&lt;BR /&gt;
31ìPHR&lt;BR /&gt;
ìPARKWAY &lt;BR /&gt;
ìPT0&lt;BR /&gt;
DEìT&lt;BR /&gt;
LìPHD&lt;BR /&gt;
LìPHD&lt;BR /&gt;
SìPT&lt;BR /&gt;
ìPO&lt;BR /&gt;
&lt;BR /&gt;
And when i read this file and create a dataset, the dataset looks as follows(same as what is seen after the intial file is converted to a unix file).&lt;BR /&gt;
&lt;BR /&gt;
Obs    name&lt;BR /&gt;
&lt;BR /&gt;
 1     31ìPHR&lt;BR /&gt;
 2     ìPARKWAY&lt;BR /&gt;
 3     ìPT0&lt;BR /&gt;
 4     DEìT&lt;BR /&gt;
 5     LìPHD&lt;BR /&gt;
 6     LìPHD&lt;BR /&gt;
 7     SìPT&lt;BR /&gt;
 8     ìPO&lt;BR /&gt;
&lt;BR /&gt;
Here is my code for your reviewal:&lt;BR /&gt;
&lt;BR /&gt;
filename ttt '/data/eccentric/testfilea.txt';&lt;BR /&gt;
&lt;BR /&gt;
x dos2unix /data/eccentric/testfile /data/eccentric/testfilea.txt;&lt;BR /&gt;
&lt;BR /&gt;
data one;&lt;BR /&gt;
   infile ttt;&lt;BR /&gt;
   input name $;&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=one;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I was hoping when i convert the file to a unix file those special characters would disappear but it did not happen. Is there any way to delete the observation if it contains these types of garbage characters? Or is there anyway to take care of this issue?&lt;BR /&gt;
&lt;BR /&gt;
Any help would be greatly appreciated.</description>
      <pubDate>Tue, 12 Jun 2007 19:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Gargabe-Character-in-Flat-file-Please-Help/m-p/3404#M1467</guid>
      <dc:creator>Eccentric</dc:creator>
      <dc:date>2007-06-12T19:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Gargabe Character in Flat file: Please Help</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Gargabe-Character-in-Flat-file-Please-Help/m-p/3405#M1468</link>
      <description>Hi,&lt;BR /&gt;
  This is not really an ODS question -- it is more of a DATA step/INFILE/Operating System question. Your best bet for a quick response to questions like this is to contact Tech Support. It is possible that this is not really garbage data, but is related to DBCS (double byte character set) characters or NLS encoding issues -- which is something that Tech Support is best equipped to handle.&lt;BR /&gt;
 &lt;BR /&gt;
  To find out how to contact Tech Support, refer to:&lt;BR /&gt;
 &lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Good luck,&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 12 Jun 2007 20:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Gargabe-Character-in-Flat-file-Please-Help/m-p/3405#M1468</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-06-12T20:38:53Z</dc:date>
    </item>
  </channel>
</rss>

