<?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: Replace Alt+Enter from Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116996#M24172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha -- didnt think of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 19:56:08 GMT</pubDate>
    <dc:creator>esjackso</dc:creator>
    <dc:date>2013-04-23T19:56:08Z</dc:date>
    <item>
      <title>Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116992#M24168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've imported an Excel file, which appears to have imported correctly.&lt;/P&gt;&lt;P&gt;However fields that have the Alt+Enter have a box [] in them, and I'd like to replace it with a space instead.&lt;/P&gt;&lt;P&gt;The compress function with "CH" parameters removes them, but I need a space instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solutions I've found indicate saving as CSV instead, but I'd like to modify the data rather than re-import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought about the translate and tranwrd function, but couldn't figure out how to specify my space. I think its "A0"x but not sure how to verify that either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Reeza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 17:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116992#M24168</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-23T17:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116993#M24169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely the character is '0A'x, which is a linefeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; set have ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; array _c _character_ ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; do over _c; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _c = translate(_c,' ','0A'x) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116993#M24169</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-04-23T18:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116994#M24170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would compressing out control charters work? compress(var,'','C')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 18:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116994#M24170</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-04-23T18:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116995#M24171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom.&lt;/P&gt;&lt;P&gt;Eric, that removes it, but I need a space in that location, otherwise my cities (Red[]Deer) becomes RedDeer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 19:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116995#M24171</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-23T19:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116996#M24172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha -- didnt think of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 19:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116996#M24172</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-04-23T19:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Alt+Enter from Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116997#M24173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would be nice if COMPRESS had an option to replace-with-space instead of remove - of course that's what TRANSLATE does, but writing it as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=compress(x,,'cz'); *where z=replace with space;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be easier than the translate code when dealing with longer lists of things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 20:46:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-Alt-Enter-from-Excel/m-p/116997#M24173</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2013-04-23T20:46:18Z</dc:date>
    </item>
  </channel>
</rss>

