<?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 remove non printable characters from CSV file before reading it in in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214539#M267609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1901" data-externalid="" data-presence="null" data-userid="468858" data-username="data_null_%3B" href="https://communities.sas.com/people/data_null_;" id="jive-46885843359579506322186"&gt;data_null_;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; old friend.&amp;nbsp; I do realize the code I posted only remove two characters, and the new ones aren't in that list. However i'm not sure how to check what the "new ones" are actually.&amp;nbsp; I can't read them into sas to look at them through "Byte()" so I actually don't know where to start, if that makes sense.&amp;nbsp; I just posted that code because it was currently what I was running on the file and I didn't want to leave any information out!&lt;/P&gt;&lt;P&gt;When I use your code this is the output that I get.&amp;nbsp; (Note teh special characters were converted to periods on the first line. I'm not sure what the "zone" or "numr" things are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR&amp;nbsp; 188052,............Jurupa Valley,hutt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 3333332101010101010477776256666726777600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 188052C8E9EA88E9EA8A52501061CC59C8544FDA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey Jaap I assume it is probably an encoding problem, however I don't have notepadd ++. I will put in a ticket to get it installed to my computer!&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, 02 Apr 2015 13:04:41 GMT</pubDate>
    <dc:creator>Anotherdream</dc:creator>
    <dc:date>2015-04-02T13:04:41Z</dc:date>
    <item>
      <title>How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214535#M267605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was given a file that has a bunch of strange looking characters (some look like flags, music notes, etc..) as part of hte data.&amp;nbsp; When sas tries to read them in it is failing and i'm not sure why.&amp;nbsp; I am guessing that these characters are non ascii printable characters, or maybe non printable characters in general... and are messing up the input for SAS.&amp;nbsp; However I can't tell because every time I try to read the file in it is dropping all records after these special characters...&amp;nbsp; my output dataset basically has only two rows, and all of the cells after these characters are nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following code to input the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*First i remove the carriage return line feeds from the file, since I know that these cause sas to fail on import*/&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile "c:\test\OriginalFile.csv" lrecl=1 recfm=n end=eof;&lt;/P&gt;&lt;P&gt;file "c:\test\Mydatafile.csv" lrecl=1000000;&lt;/P&gt;&lt;P&gt;nq=0;&lt;/P&gt;&lt;P&gt;do until (eof or (char='0A'X and mod(nq,2)=0));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input char $char1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nq=nq+(char='"') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if char not in ('0D'x,'0A'x) then put char $char1. @ ;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;put ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*then I try to import, however it still fails*/&lt;/P&gt;&lt;P&gt;Proc import datafile="C:\test\mydatafile.csv" out=plzwork replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't copy the characters onto the webpage because they don't show up.&amp;nbsp; Example if the word is Juniper(flag character)(music note) etc..&amp;nbsp; When I copy paste, all you will see is "juniper".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, I can't seem to upload the file to this website, as I get the error&amp;nbsp; "The content type of this attachment is not allowed". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated, and if you need to see what my sas dataset looks like on output please let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214535#M267605</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2015-04-01T21:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214536#M267606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code you posted only removes two characters which don't sound like the ones you need to remove.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it is a Unicode problem in that you need to specify the unicode "type".&amp;nbsp; Can't remember what it's called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to use this code to look at a few records of your file.&amp;nbsp; LIST will display HEX for unprintable characters.&amp;nbsp; To see more change the expression in the IF STOP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'path-to-your-file'&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;recfm&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=f &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;80&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;input&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;list&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; _n_ eq &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;stop&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214536#M267606</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-04-01T23:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214537#M267607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have shady characters in your input file, using the "ignore dos eof" option is often helpful as an alternative to processing with recfm=N:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;infile "c:\test\OriginalFile.csv" ignoredoseof;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename myfile &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"c:\test\OriginalFile.csv" ignoredoseof;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 00:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214537#M267607</guid>
      <dc:creator>dkb</dc:creator>
      <dc:date>2015-04-02T00:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214538#M267608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely an encoding problem (ut8). Try to open the file in Notepad++ and it will show the encoding (hopefully).&lt;/P&gt;&lt;P&gt;With a different source type like Ebcdic (mainframe) there are ohter ones. Do you have some Hex print of the data?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 06:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214538#M267608</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-02T06:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214539#M267609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1901" data-externalid="" data-presence="null" data-userid="468858" data-username="data_null_%3B" href="https://communities.sas.com/people/data_null_;" id="jive-46885843359579506322186"&gt;data_null_;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; old friend.&amp;nbsp; I do realize the code I posted only remove two characters, and the new ones aren't in that list. However i'm not sure how to check what the "new ones" are actually.&amp;nbsp; I can't read them into sas to look at them through "Byte()" so I actually don't know where to start, if that makes sense.&amp;nbsp; I just posted that code because it was currently what I was running on the file and I didn't want to leave any information out!&lt;/P&gt;&lt;P&gt;When I use your code this is the output that I get.&amp;nbsp; (Note teh special characters were converted to periods on the first line. I'm not sure what the "zone" or "numr" things are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAR&amp;nbsp; 188052,............Jurupa Valley,hutt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ZONE&amp;nbsp; 3333332101010101010477776256666726777600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMR&amp;nbsp; 188052C8E9EA88E9EA8A52501061CC59C8544FDA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hey Jaap I assume it is probably an encoding problem, however I don't have notepadd ++. I will put in a ticket to get it installed to my computer!&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, 02 Apr 2015 13:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214539#M267609</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2015-04-02T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214540#M267610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author "&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1218" data-externalid="" data-presence="null" data-userid="8872" data-username="jakarman" href="https://communities.sas.com/people/jakarman" id="jive-887243360264588306186"&gt;Jaap Karman&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;: As always thanks for your help!&amp;nbsp; I was able to install Notepad++, and in the bottom right hand corner it says the encoding is " Dow\Windows ANSI". I can now see the speical characters tho. This is EXACTLY what notepad++ says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;188052,&lt;STRONG&gt;CAN SO EM SO SUB BS CAN SO EM SO SUB BS&lt;/STRONG&gt; Jurupa Valley,hutto.&amp;nbsp; (I added the spaces between the bolded words. in notepad++ the bolded words are really words with a black background (like a CRLF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you happen to know what these characters are? They are new ones to me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh fyi, I was able modify some code I found online to 'solve' this problem by using the following code. However I don't understand how it works fully because I don't know what the prxchange function is doing really (I wrote the code around this function). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone could explain what this prxchange code is doing I think I would be able to understand what these special charcters are.&amp;nbsp; I understand the rest of the code since I just took my earlier code, added that line and changed the output paramaters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;infile &amp;amp;inputfile.&amp;nbsp; lrecl=1 recfm=n end=eof;&lt;/P&gt;&lt;P&gt;file &amp;amp;outputfile.&amp;nbsp; lrecl=1000000;&lt;/P&gt;&lt;P&gt;nq=0;&lt;/P&gt;&lt;P&gt;do until (eof or (char='0A'X and mod(nq,2)=0));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input char $char1.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nq=nq+(char='"') ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if char not in ('0D'x,'0A'x) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char1 = prxchange('s/[^\x20-\x7E\x0A\x0D]//', -1, char);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if missing(char)=1 or missing(char1)=0 then put char1 $char1. @ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;put ;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214540#M267610</guid>
      <dc:creator>Anotherdream</dc:creator>
      <dc:date>2015-04-02T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214541#M267611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZONE is the first hex digit and NUMR is the second.&amp;nbsp; Look at documentation for LIST statement.&amp;nbsp; You need a fix font to "see" it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your SAS version and OS?&amp;nbsp; I have PC 9.4 and it may tell us the encoding if you can post the file as attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that I'm learning as we go.&lt;/P&gt;&lt;P&gt;I think all you need to do is use the proper value on the INFILE statement option ENCODING= but I don't know what value you need. :smileyconfused:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/nlsref/67399/HTML/default/viewer.htm#n1r7pnb91iybs9n1hgvsj7q09srd.htm" title="https://support.sas.com/documentation/cdl/en/nlsref/67399/HTML/default/viewer.htm#n1r7pnb91iybs9n1hgvsj7q09srd.htm"&gt;SAS(R) 9.4 National Language Support (NLS): Reference Guide, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note there are the same number of non-printable characters as characters in Jurupa Valley, 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #ff0000; background-color: #ffffff;"&gt;CHAR&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;188052&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;............J&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;urupa Valley,hutt&lt;BR /&gt;ZONE&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;&lt;STRONG&gt;3333332101010101010477776256666726777600&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;NUMR&amp;nbsp; 188052C8E9EA88E9EA8A52501061CC59C8544FDA&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214541#M267611</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-04-02T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove non printable characters from CSV file before reading it in</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214542#M267612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok I can read it hex now&amp;nbsp; after "2," (32 2C)&amp;nbsp; there is that (18 0e&amp;nbsp;&amp;nbsp;&amp;nbsp; 19 0e&amp;nbsp;&amp;nbsp; 1a 08&amp;nbsp;&amp;nbsp; 18 0e&amp;nbsp;&amp;nbsp; 19 0e&amp;nbsp;&amp;nbsp;&amp;nbsp; 1a 08 )&amp;nbsp; "Ju"&amp;nbsp; (4a 75).&lt;/P&gt;&lt;P&gt;can=18 so=0E&amp;nbsp; em=19&amp;nbsp;&amp;nbsp; etc.&amp;nbsp;&amp;nbsp; It are the lower 32 bytes of 7-bit ascii&amp;nbsp; once used as instructions. (Cancel, Shift out, empahized etc.&amp;nbsp; CR/LF SUB=eof 1A as still used). That doesn't make sense at a data record unless it is encoded string. It is US based data and 6*2 (12 bytes)&amp;nbsp; .&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;It looks as 6-2 byte conbinations&amp;nbsp; may be UTF16 &lt;A href="http://www.unicode.org/notes/tn12/" title="http://www.unicode.org/notes/tn12/"&gt;UTN #12: UTF-16 for Processing&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; but that doesn't make sense with some chars.&amp;nbsp; (eastern ones)&lt;/P&gt;&lt;P&gt;It could be the binary dump of some integers (reversed order 6 of them 3608,3609,2074&amp;nbsp; - repeated) doesn't see any meaning of that&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 14:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-non-printable-characters-from-CSV-file-before/m-p/214542#M267612</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-02T14:11:52Z</dc:date>
    </item>
  </channel>
</rss>

