<?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: SAS new line symbol character code? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27852#M6409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also facing the same issue.&amp;nbsp; After searching a lot, i found this and it was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2014 12:06:00 GMT</pubDate>
    <dc:creator>maheshtalla</dc:creator>
    <dc:date>2014-10-06T12:06:00Z</dc:date>
    <item>
      <title>SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27843#M6400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have simple task - replace new line symbol to simple space character.&lt;/P&gt;&lt;P&gt;So some sas table has character cell and this cell has long string with new line characters inside, and I need just replace all these symbols to space symbols.&lt;/P&gt;&lt;P&gt;Looks like this task can be simple resolved by simple sas perl function:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;prxchange("s/X/ /",-1,ColName);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where X- new line character(or appropriate code) that I actually can't find , and ColName is the name of character column that has this new lines symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be grateful for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 07:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27843#M6400</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-01-11T07:57:26Z</dc:date>
    </item>
    <item>
      <title>SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27844#M6401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;new line character is \n in Perl Regular Expression.&lt;/P&gt;&lt;P&gt;prxchange("s/\n/ /",-1,ColName);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27844#M6401</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-01-11T08:39:26Z</dc:date>
    </item>
    <item>
      <title>SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27845#M6402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;Thanks, it helped.Before I tried same /n character but inside of quote('/n' istead of simple /n) that's why it didn't helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks once more!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 08:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27845#M6402</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-01-11T08:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27846#M6403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Regular expression is overkill for such a simple task.&lt;/P&gt;&lt;P&gt;You can use translate to replace single characters with other characters. Note that the order of the arguments to translate seems backwards, which I assume you can blame on the IBM mainframe command that SAS used in the old days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;translate(ColName,' ','0A'x)&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use TRANWRD to replace substrings with replacement text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;tranwrd(ColName,'0A'x,' ')&lt;BR /&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 13:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27846#M6403</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-11T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27847#M6404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Thanks, I supposed that perl fucntion will perfom this operation fuster, but may be really simple tranwrd function will work quicker, I'll look into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27847#M6404</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-01-11T14:10:31Z</dc:date>
    </item>
    <item>
      <title>SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27848#M6405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yura,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other comment.&amp;nbsp; The newline "character" means different things on different operating systems.&amp;nbsp; So Tom's '0A'x would work for Unix (which just uses the linefeed as a newline marker).&amp;nbsp; Windows uses the two character combination of &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt; to mark the end of a line ('0D'x).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The perl function knows which OS you are on and adjusts accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27848#M6405</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-01-11T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27849#M6406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Doc!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 15:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27849#M6406</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-01-11T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27850#M6407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the regular expression prxchange('s/\r?\n/ /o',-1,foo) will take care of cases for newlines with or without carriage returns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 18:20:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27850#M6407</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-01-11T18:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27851#M6408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 16:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27851#M6408</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2012-01-12T16:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27852#M6409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also facing the same issue.&amp;nbsp; After searching a lot, i found this and it was very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 12:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27852#M6409</guid>
      <dc:creator>maheshtalla</dc:creator>
      <dc:date>2014-10-06T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS new line symbol character code?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27853#M6410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this expression helping out me a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 01:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-new-line-symbol-character-code/m-p/27853#M6410</guid>
      <dc:creator>gee</dc:creator>
      <dc:date>2014-10-08T01:19:08Z</dc:date>
    </item>
  </channel>
</rss>

