<?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 Carriage return from excel in to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208946#M306754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post so apologies if it is in the wrong place or incorrect in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assigned a libname to an excel workbook like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; libname temp EXCEL "&amp;amp;workbook." dbmax_text=32767 getnames = no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some variables have large spaces in their values due to the fact that once cell in my excel workbook may have multiple lines split apart by some kind of newline character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed these using the following code in a datastep: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; variable= compress(variable,,"kw");&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I was wondering if anyone knew a specific string of characters I could search for as it would help me achieve my programming goal - I want to replace these characters with a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I use windows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 14:52:57 GMT</pubDate>
    <dc:creator>bian123</dc:creator>
    <dc:date>2015-07-22T14:52:57Z</dc:date>
    <item>
      <title>Carriage return from excel in to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208946#M306754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post so apologies if it is in the wrong place or incorrect in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assigned a libname to an excel workbook like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; libname temp EXCEL "&amp;amp;workbook." dbmax_text=32767 getnames = no;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some variables have large spaces in their values due to the fact that once cell in my excel workbook may have multiple lines split apart by some kind of newline character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed these using the following code in a datastep: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; variable= compress(variable,,"kw");&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I was wondering if anyone knew a specific string of characters I could search for as it would help me achieve my programming goal - I want to replace these characters with a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I use windows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 14:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208946#M306754</guid>
      <dc:creator>bian123</dc:creator>
      <dc:date>2015-07-22T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return from excel in to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208947#M306755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may find the NOTPRINT function helpful.&amp;nbsp; You can find the location of non-printing characters and replace them with blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #003399; font-size: 20.1599979400635px; margin-bottom: 8px; margin-top: -1em; background-color: #ffffff;"&gt;&lt;/H1&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002194285.htm" style="font-size: 10pt; line-height: 1.5em;" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002194285.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are also other threads on this forum for the same issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 17:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208947#M306755</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2015-07-24T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return from excel in to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208948#M306756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could check&lt;/P&gt;&lt;P&gt;'0D0A'x&lt;/P&gt;&lt;P&gt;'0A'x &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or just&lt;/P&gt;&lt;P&gt;put a $hex.;&lt;/P&gt;&lt;P&gt;to see what exactly it is .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 12:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return-from-excel-in-to-SAS/m-p/208948#M306756</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-25T12:54:13Z</dc:date>
    </item>
  </channel>
</rss>

