<?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 a new line character to a space in an SCL list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231634#M42164</link>
    <description>&lt;P&gt;The problem comes from an invalid list returned, when pressing the enter key, this does not always happen.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 14:35:01 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2015-10-26T14:35:01Z</dc:date>
    <item>
      <title>Replace a new line character to a space in an SCL list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231311#M42062</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am fetching data from a textbox and storing it in an SCL list. The code is below:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Reasonlist= makelist(); &lt;BR /&gt; &lt;BR /&gt;ReasonTxt._getData(Reasonlist); &lt;BR /&gt; &lt;BR /&gt;reason=""; &lt;BR /&gt;if listlen(Reasonlist) ne 0 &lt;BR /&gt;then do; &lt;BR /&gt; do i = 1 to listlen(Reasonlist); &lt;BR /&gt; reason=reason||trim(getitemc(Reasonlist,i))||" "; &lt;BR /&gt; end; &lt;BR /&gt;end; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;* check if reason for revision is completed *; &lt;BR /&gt;if lengthn(reason)&amp;lt;=0 &lt;BR /&gt; then do; &lt;BR /&gt; commandlist=makelist(); &lt;BR /&gt; commandlist=insertc(commandlist, 'Please provide Reason for Revision.',1); &lt;BR /&gt; command=messagebox(commandlist,'S','O',"ERROR"); &lt;BR /&gt; commandlist=dellist(commandlist); &lt;BR /&gt; rc = dellist(Reasonlist); &lt;BR /&gt; return; &lt;BR /&gt; end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a message box which prompts error when the text is not provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But I am getting this error even if I enter text&amp;nbsp;in the textbox.This generally happens when at the end of the text, I press the enter key. How to convert this new line at the end of the text to space? Please help.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12033i60D2C0BEBE21C369/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Revision.png" title="Revision.png" /&gt;</description>
      <pubDate>Fri, 23 Oct 2015 07:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231311#M42062</guid>
      <dc:creator>Arjumand</dc:creator>
      <dc:date>2015-10-23T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a new line character to a space in an SCL list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231631#M42163</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed some of the code just a little like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DISPLAY:
Reasonlist = ReasonTxt.Text;

call putlist(Reasonlist, "Reasonlist", 2);

reason=" ";&lt;BR /&gt;...&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Sometimes when entering newlines(the enter key), no SCL List is returned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you contact Tech Support&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231631#M42163</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-10-26T14:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace a new line character to a space in an SCL list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231634#M42164</link>
      <description>&lt;P&gt;The problem comes from an invalid list returned, when pressing the enter key, this does not always happen.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 14:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-a-new-line-character-to-a-space-in-an-SCL-list/m-p/231634#M42164</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2015-10-26T14:35:01Z</dc:date>
    </item>
  </channel>
</rss>

