<?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: Space Removing..Need Help! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26759#M6145</link>
    <description>To the OP:  Your reply: "I guess it doesn't work."&lt;BR /&gt;
&lt;BR /&gt;
Please share whatever SAS code doesn't work - included in a post-reply but within the SAS-generated log (not just your code).  And include some type of additional diagnostic revealing statement, such as below:&lt;BR /&gt;
&lt;BR /&gt;
PUTLOG _ALL_;&lt;BR /&gt;
&lt;BR /&gt;
This information will help others who want to help you with the problem/post.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 03 Nov 2010 14:31:26 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-11-03T14:31:26Z</dc:date>
    <item>
      <title>Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26753#M6139</link>
      <description>Hi;&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset like this:&lt;BR /&gt;
&lt;BR /&gt;
ID   NAME   ZORTNAME&lt;BR /&gt;
1      X               ABC DEF&lt;BR /&gt;
2      Y            WER DS&lt;BR /&gt;
3      Z           XCF    TRDS&lt;BR /&gt;
&lt;BR /&gt;
in the id and name column there is no problem. But in the ZORTNAME column&lt;BR /&gt;
there are many spaces in front of the records and also have unnecesary spaces&lt;BR /&gt;
at the end of the datas. So i want to remove them. But by doing them i want&lt;BR /&gt;
to protect the spaces between words. For example: In between ABC and DEF there is a space which should not be removed.&lt;BR /&gt;
&lt;BR /&gt;
So the final output will look like this:  &lt;BR /&gt;
&lt;BR /&gt;
ID   NAME   ZORTNAME&lt;BR /&gt;
1      X           (no space)ABC DEF(no space)&lt;BR /&gt;
2      Y          (no space)WER DS(no space)&lt;BR /&gt;
3      Z           (no space)XCF    TRDS(no space)&lt;BR /&gt;
&lt;BR /&gt;
Could you please help me about this issue??&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Cakcan</description>
      <pubDate>Tue, 02 Nov 2010 15:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26753#M6139</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-02T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26754#M6140</link>
      <description>Look up the SAS functions trim() and left(), right() is also useful to know.</description>
      <pubDate>Tue, 02 Nov 2010 15:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26754#M6140</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2010-11-02T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26755#M6141</link>
      <description>Using a DATA step approach, consider using the SAS function COMPBL to scrub your SAS variable content after INPUT.&lt;BR /&gt;
&lt;BR /&gt;
Kindly, before posting, suggest you consider the appropriate forum - not just the first one in the list -- yes, there are other posters that do the same but I am hoping it's worth the suggestion.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
+compbl function data step scrub site:sas.com

Message was edited by: sbb</description>
      <pubDate>Tue, 02 Nov 2010 16:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26755#M6141</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-02T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26756#M6142</link>
      <description>in addition to the above solutions.. &lt;BR /&gt;
if ur sas version is 9 or later, strip function could serve the purpose. It is equivalent to trim(left());&lt;BR /&gt;
&lt;BR /&gt;
-D</description>
      <pubDate>Wed, 03 Nov 2010 04:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26756#M6142</guid>
      <dc:creator>DCL</dc:creator>
      <dc:date>2010-11-03T04:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26757#M6143</link>
      <description>Function :  strip(ZORTNAME) would be helpful...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Wed, 03 Nov 2010 06:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26757#M6143</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-11-03T06:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26758#M6144</link>
      <description>I guess it doesn't work.&lt;BR /&gt;
I am sending a sample row of my records. Please check it out.&lt;BR /&gt;
&lt;BR /&gt;
example:&lt;BR /&gt;
&lt;BR /&gt;
Auchan                           93000  BOBIGNY                     &lt;BR /&gt;
Auchan                           93007  LEBLAN CMESNIL             &lt;BR /&gt;
&lt;BR /&gt;
There are some blanks/space or some special chars at the end of the records (for example: at the and of the "Auchan" which i dont understand. Trim compress strip   and other functions doesnt seem to work to remove the blanks.&lt;BR /&gt;
If you double click on the "Auchan" record it selects more than the record including so many spaces.&lt;BR /&gt;
&lt;BR /&gt;
So i could not remove it.&lt;BR /&gt;
Some one have any idea??</description>
      <pubDate>Wed, 03 Nov 2010 14:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26758#M6144</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-03T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Space Removing..Need Help!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26759#M6145</link>
      <description>To the OP:  Your reply: "I guess it doesn't work."&lt;BR /&gt;
&lt;BR /&gt;
Please share whatever SAS code doesn't work - included in a post-reply but within the SAS-generated log (not just your code).  And include some type of additional diagnostic revealing statement, such as below:&lt;BR /&gt;
&lt;BR /&gt;
PUTLOG _ALL_;&lt;BR /&gt;
&lt;BR /&gt;
This information will help others who want to help you with the problem/post.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 03 Nov 2010 14:31:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Space-Removing-Need-Help/m-p/26759#M6145</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-03T14:31:26Z</dc:date>
    </item>
  </channel>
</rss>

