<?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: translate without spacing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45975#M9493</link>
    <description>Patrick and Sbb ,&lt;BR /&gt;
Thanks alot for your program  ideas. &lt;BR /&gt;
thay  help me alot!!!</description>
    <pubDate>Tue, 16 Sep 2008 18:27:41 GMT</pubDate>
    <dc:creator>yonib</dc:creator>
    <dc:date>2008-09-16T18:27:41Z</dc:date>
    <item>
      <title>translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45969#M9487</link>
      <description>If I have this obs: yyy"y www qqq and i want to get yyyy without the space,&lt;BR /&gt;
what should i do?</description>
      <pubDate>Sun, 14 Sep 2008 06:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45969#M9487</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-09-14T06:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45970#M9488</link>
      <description>Use the COMPRESS function in a SAS DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 14 Sep 2008 16:47:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45970#M9488</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-14T16:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45971#M9489</link>
      <description>It will not solve my problem beacuse if i have yyy"y www qqq and &lt;BR /&gt;
I will use compress(translate(var,' ' ,'"')); &lt;BR /&gt;
The result will be this:yyyywwwqqq&lt;BR /&gt;
 And this is not what im looking for.....</description>
      <pubDate>Sun, 14 Sep 2008 17:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45971#M9489</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-09-14T17:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45972#M9490</link>
      <description>use input them to indicate the line number&lt;BR /&gt;
data temp;&lt;BR /&gt;
input y 1-5 m ...;&lt;BR /&gt;
then use compress to compress the variable y&lt;BR /&gt;
them combine them in the way you like</description>
      <pubDate>Mon, 15 Sep 2008 02:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45972#M9490</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-15T02:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45973#M9491</link>
      <description>The following code does what you asked for.&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  have='yyy y www qqq ';&lt;BR /&gt;
  have=tranwrd(have,'y y','yy');&lt;BR /&gt;
  put have=;&lt;BR /&gt;
  want=scan(have,1);&lt;BR /&gt;
  put want=;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
More general solutions would be possible - especially with RegEx - but you would have to tell us a bit more in detail what the problem is about you want to solve.</description>
      <pubDate>Mon, 15 Sep 2008 12:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45973#M9491</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-09-15T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45974#M9492</link>
      <description>Read the DOC on the COMPRESS function and you will see that you can supply the specific character(s) to be compressed.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 15 Sep 2008 12:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45974#M9492</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-09-15T12:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: translate without spacing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45975#M9493</link>
      <description>Patrick and Sbb ,&lt;BR /&gt;
Thanks alot for your program  ideas. &lt;BR /&gt;
thay  help me alot!!!</description>
      <pubDate>Tue, 16 Sep 2008 18:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/translate-without-spacing/m-p/45975#M9493</guid>
      <dc:creator>yonib</dc:creator>
      <dc:date>2008-09-16T18:27:41Z</dc:date>
    </item>
  </channel>
</rss>

