<?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 UTF-8 carriage return characters in data step using infile in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317910#M69633</link>
    <description>&lt;P&gt;Thanks for your suggestion, ChrisNZ. I tried your code; but it seems not work.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2016 14:57:56 GMT</pubDate>
    <dc:creator>ddcjack</dc:creator>
    <dc:date>2016-12-09T14:57:56Z</dc:date>
    <item>
      <title>how to remove UTF-8 carriage return characters in data step using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317369#M69479</link>
      <description>&lt;P&gt;I read in the CSV file to dataset by using the PROC IMPORT. the UTF-8 specifical character carriage return looks like the single quatation sign ('). I need to remove it form the text variables and keep the normal single quatation sign. please suggest. thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 16:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317369#M69479</guid>
      <dc:creator>ddcjack</dc:creator>
      <dc:date>2016-12-07T16:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove UTF-8 carriage return characters in data step using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317497#M69529</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  A="‘a’";
  B=translate(A,"''","‘’");
  putlog B=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;B='a'&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 05:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317497#M69529</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-12-08T05:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove UTF-8 carriage return characters in data step using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317645#M69572</link>
      <description>&lt;P&gt;I have a number of UTF-8 CSV files and none of them have this behavior. By any chance are you looking at a file generated in a different operating system? You&amp;nbsp; may want to investigate the TERMSTR option for the Infile statement&amp;nbsp;or use a FILENAME with that option to reference for proc import&amp;nbsp;if that is the case.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 16:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317645#M69572</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-08T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove UTF-8 carriage return characters in data step using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317910#M69633</link>
      <description>&lt;P&gt;Thanks for your suggestion, ChrisNZ. I tried your code; but it seems not work.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317910#M69633</guid>
      <dc:creator>ddcjack</dc:creator>
      <dc:date>2016-12-09T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove UTF-8 carriage return characters in data step using infile</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317928#M69634</link>
      <description>If you know the data types of your csv file columns, a data step will eliminate that unwanted carriage return if you add it to the delimiter= infile option&lt;BR /&gt;Data your_data ;&lt;BR /&gt;Length your csv file columns $100 ;&lt;BR /&gt;Infile "/path/your csv file.csv" dsd delimiter= "0D2c"x lrecl= 1000 firstobs= 2;&lt;BR /&gt;input your csv file columns;&lt;BR /&gt;Run;</description>
      <pubDate>Fri, 09 Dec 2016 16:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-remove-UTF-8-carriage-return-characters-in-data-step/m-p/317928#M69634</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2016-12-09T16:07:18Z</dc:date>
    </item>
  </channel>
</rss>

