<?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: Trim the line until the symbol in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416605#M102309</link>
    <description>&lt;P&gt;What do you mean by "I need to get..."?&amp;nbsp; This is where posting test data as a datastep and what you want out is so important.&amp;nbsp; We are now all guessing what you want to do!&amp;nbsp; From what you post, it seems that you want to replace , with " ", which would be:&lt;/P&gt;
&lt;PRE&gt;want=tranwrd(have,',','" "');&lt;/PRE&gt;
&lt;P&gt;Posting clear concise questions will get you clear concise answers.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 09:03:20 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-28T09:03:20Z</dc:date>
    <item>
      <title>Trim the line until the symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416580#M102297</link>
      <description>&lt;P&gt;How&amp;nbsp;I can trim the line until the symbol in the loop?&lt;/P&gt;&lt;P&gt;for example, " abc, defg, hj, kli&amp;nbsp;"&lt;/P&gt;&lt;P&gt;I need to get "abc"&amp;nbsp; "defg" "hj" "kli"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 07:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416580#M102297</guid>
      <dc:creator>Liliya95</dc:creator>
      <dc:date>2017-11-28T07:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trim the line until the symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416589#M102302</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following functions - COUNTC, SUM, SCAN&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
 a="'abc','def','xyz'";
 count_commas=countc(a);
if count_commas&amp;gt;1 then do;
 count_commas=count_commas+1;
  do i=1 to count_commas;
  var=scan(a,",",i);
  output;
end;
end;&lt;BR /&gt;if count_commas=0 or count_commas=. then var=a;
run;
 



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2017 08:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416589#M102302</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-11-28T08:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trim the line until the symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416605#M102309</link>
      <description>&lt;P&gt;What do you mean by "I need to get..."?&amp;nbsp; This is where posting test data as a datastep and what you want out is so important.&amp;nbsp; We are now all guessing what you want to do!&amp;nbsp; From what you post, it seems that you want to replace , with " ", which would be:&lt;/P&gt;
&lt;PRE&gt;want=tranwrd(have,',','" "');&lt;/PRE&gt;
&lt;P&gt;Posting clear concise questions will get you clear concise answers.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trim-the-line-until-the-symbol/m-p/416605#M102309</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-28T09:03:20Z</dc:date>
    </item>
  </channel>
</rss>

