<?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: how maintain single space if string skip one line to another line in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883936#M349208</link>
    <description>data rawdata ;&lt;BR /&gt;text='090D0A'x||"essay,     an analytic, interpretative, or   ";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;length want $ 2000;&lt;BR /&gt;want=compbl(prxchange('s/[\f\n\r\t\v]//',-1,text));&lt;BR /&gt;run;</description>
    <pubDate>Fri, 07 Jul 2023 11:39:25 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-07-07T11:39:25Z</dc:date>
    <item>
      <title>how maintain single space if string skip one line to another line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883708#M349140</link>
      <description>&lt;P&gt;/**rawdata set looks like below*/&lt;/P&gt;
&lt;P&gt;data rawdata ;&lt;/P&gt;
&lt;P&gt;text="essay, an analytic, interpretative, or critical literary composition usually much shorter and less systematic &lt;STRONG&gt;and&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;formal&lt;/STRONG&gt; than a dissertation or thesis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and usually dealing with its subject from a limited and often personal point of view";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have one rawdata like above one . with in a string we have multiple empty lines,tab spaces, unwanted spaces . How to remove all type of spaces except single embbded space.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with few programs but I couldn't . coming like few words going to mix for example see bold letters 'and' 'formal' these words coming like "andformal".&lt;/P&gt;
&lt;P&gt;My request is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The record should be like below if export this dataset:&lt;BR /&gt;"essay, an analytic, interpretative, or critical literary composition usually much shorter and less systematic and formal than a dissertation or thesis and usually dealing with its subject from a limited and often personal point of view"&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883708#M349140</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2023-07-06T12:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: how maintain single space if string skip one line to another line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883722#M349142</link>
      <description>&lt;P&gt;I cannot tell from your share code what your variable actually contains.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it just has spaces, as your code would generate, then just use COMPBL() to collapse the multiple adjacent spaces into one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it actual does have other invisible characters ( such as null, tab, line feed, carriage return, form feed, or non-breaking space) then first convert them into spaces.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set rawdata;
  text = compbl(translate(text,' ','00090A0D0CA0'x));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883722#M349142</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-06T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: how maintain single space if string skip one line to another line</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883936#M349208</link>
      <description>data rawdata ;&lt;BR /&gt;text='090D0A'x||"essay,     an analytic, interpretative, or   ";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;length want $ 2000;&lt;BR /&gt;want=compbl(prxchange('s/[\f\n\r\t\v]//',-1,text));&lt;BR /&gt;run;</description>
      <pubDate>Fri, 07 Jul 2023 11:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-maintain-single-space-if-string-skip-one-line-to-another/m-p/883936#M349208</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-07T11:39:25Z</dc:date>
    </item>
  </channel>
</rss>

