<?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: Possible to remove carriage returns from a string and leave the rest of the value? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879040#M347298</link>
    <description>&lt;P&gt;Use a HEX format on your character string to see the character in the string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=have;
var stringVar;
format stringVar $hex50.; *make sure there's an appropriate length;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 02 Jun 2023 15:22:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-06-02T15:22:27Z</dc:date>
    <item>
      <title>Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878819#M347202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some files which I read in from Excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some long strings which have carriage returns in the middle. I need to remove the CR but leave the rest of the value intact. Is this possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 20:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878819#M347202</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2023-06-01T20:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878824#M347205</link>
      <description>&lt;P&gt;Use the COMPRESS function to remove "0d"x.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 20:46:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878824#M347205</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-01T20:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878987#M347272</link>
      <description>&lt;P&gt;I tried the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;directory3 = compress(directory2, '0d'x);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did not get an error message but the carriage returns are still there. Did I miss some punctuation or a modifier or something?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878987#M347272</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2023-06-02T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878989#M347273</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37814"&gt;@Walternate&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try removing '0A'x (the line feed char) also. Might solve your problem.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/878989#M347273</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2023-06-02T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879040#M347298</link>
      <description>&lt;P&gt;Use a HEX format on your character string to see the character in the string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=have;
var stringVar;
format stringVar $hex50.; *make sure there's an appropriate length;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2023 15:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879040#M347298</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-02T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879080#M347312</link>
      <description>&lt;P&gt;I strongly suspect that you want to replace the character with a space. Removing the line feed means the resulting text will be poor for reading.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;This is an Excel value
split to two or more
lines.&lt;/PRE&gt;
&lt;P&gt;When you remove the line feeds you will get&lt;/P&gt;
&lt;PRE&gt;This is an Excel valuesplit to two or morelines.&lt;/PRE&gt;
&lt;P&gt;The TRANSLATE function will replace a character with another.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 16:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879080#M347312</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-02T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879383#M347406</link>
      <description>&lt;P&gt;Is there any way to change my output program which built the Excel files so that it is only outputting text values and no weird characters?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To output I am just using ods excel and proc printing a data file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879383#M347406</guid>
      <dc:creator>Walternate</dc:creator>
      <dc:date>2023-06-06T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Possible to remove carriage returns from a string and leave the rest of the value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879391#M347407</link>
      <description>&lt;P&gt;Use the FLOW="TABLES" option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/m-p/357530/highlight/true#M18573" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/m-p/357530/highlight/true#M18573&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Possible-to-remove-carriage-returns-from-a-string-and-leave-the/m-p/879391#M347407</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-06T15:44:51Z</dc:date>
    </item>
  </channel>
</rss>

