<?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 a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216455#M53272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain me why my %do %while&amp;nbsp; stops after first iteration while it shouldn't...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a macro to perform a rename for a selected list of variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the table that I would like to change the variable names :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data list;&lt;/P&gt;&lt;P&gt;infile cards&amp;nbsp; dsd missover;&lt;/P&gt;&lt;P&gt;input var1 $4. var2 $4. var3 $4. ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;aaa bbb ccc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do so I get the new variable's name ( values of variable col )&amp;nbsp; from 'test' dataset (it is important to notice the value of col have underscore and I do not want to remove those underscore) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile cards&amp;nbsp; dsd missover;&lt;/P&gt;&lt;P&gt;input orig $4. col $20.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;var1 over_tap&lt;/P&gt;&lt;P&gt;var2 under_top_more&lt;/P&gt;&lt;P&gt;var3 any_over_before&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So I would like in list dataset to rename&amp;nbsp; &lt;/SPAN&gt;var1&amp;nbsp; to 'over_tap', var2&amp;nbsp; to 'under_top_more' and var3 to 'any_over_before'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro rename (data=) ;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select distinct orig,compress(col) into :old,:new&amp;nbsp; separated by ' '&lt;/P&gt;&lt;P&gt;from test;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new_&amp;amp;data. ; set &amp;amp;data.;&lt;/P&gt;&lt;P&gt;%let count=1;&lt;/P&gt;&lt;P&gt; %do %while(%scan(&amp;amp;old,&amp;amp;count,%str( )) ne %str());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let old_&amp;amp;count=%scan(&amp;amp;old,&amp;amp;count);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let new_&amp;amp;count=%scan(&amp;amp;new,&amp;amp;count);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename &amp;amp;&amp;amp;old_&amp;amp;count.=&amp;amp;&amp;amp;new_&amp;amp;count.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let count=%eval(&amp;amp;count+1);&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend rename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%rename(data=list)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my macro does only perform&amp;nbsp; one iteration...There are no ERROR or WARNING&amp;nbsp; and the log says :&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable COUNT resolves to 2&lt;/P&gt;&lt;P&gt;MLOGIC(RENAME):&amp;nbsp; %DO %WHILE() condition is FALSE; loop will not iterate again.&lt;/P&gt;&lt;P&gt;MPRINT(RENAME):&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 12:54:10 GMT</pubDate>
    <dc:creator>saskapa</dc:creator>
    <dc:date>2015-08-04T12:54:10Z</dc:date>
    <item>
      <title>a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216455#M53272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please explain me why my %do %while&amp;nbsp; stops after first iteration while it shouldn't...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a macro to perform a rename for a selected list of variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the table that I would like to change the variable names :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data list;&lt;/P&gt;&lt;P&gt;infile cards&amp;nbsp; dsd missover;&lt;/P&gt;&lt;P&gt;input var1 $4. var2 $4. var3 $4. ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;aaa bbb ccc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to do so I get the new variable's name ( values of variable col )&amp;nbsp; from 'test' dataset (it is important to notice the value of col have underscore and I do not want to remove those underscore) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;infile cards&amp;nbsp; dsd missover;&lt;/P&gt;&lt;P&gt;input orig $4. col $20.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;var1 over_tap&lt;/P&gt;&lt;P&gt;var2 under_top_more&lt;/P&gt;&lt;P&gt;var3 any_over_before&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So I would like in list dataset to rename&amp;nbsp; &lt;/SPAN&gt;var1&amp;nbsp; to 'over_tap', var2&amp;nbsp; to 'under_top_more' and var3 to 'any_over_before'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro rename (data=) ;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select distinct orig,compress(col) into :old,:new&amp;nbsp; separated by ' '&lt;/P&gt;&lt;P&gt;from test;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new_&amp;amp;data. ; set &amp;amp;data.;&lt;/P&gt;&lt;P&gt;%let count=1;&lt;/P&gt;&lt;P&gt; %do %while(%scan(&amp;amp;old,&amp;amp;count,%str( )) ne %str());&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let old_&amp;amp;count=%scan(&amp;amp;old,&amp;amp;count);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let new_&amp;amp;count=%scan(&amp;amp;new,&amp;amp;count);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rename &amp;amp;&amp;amp;old_&amp;amp;count.=&amp;amp;&amp;amp;new_&amp;amp;count.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %let count=%eval(&amp;amp;count+1);&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend rename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%rename(data=list)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my macro does only perform&amp;nbsp; one iteration...There are no ERROR or WARNING&amp;nbsp; and the log says :&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable COUNT resolves to 2&lt;/P&gt;&lt;P&gt;MLOGIC(RENAME):&amp;nbsp; %DO %WHILE() condition is FALSE; loop will not iterate again.&lt;/P&gt;&lt;P&gt;MPRINT(RENAME):&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sasp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 12:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216455#M53272</guid>
      <dc:creator>saskapa</dc:creator>
      <dc:date>2015-08-04T12:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216456#M53273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, not going to read that as really can't look at %&amp;amp;%&amp;amp;'s.&amp;nbsp; As an alternative to doing it that way, why not just generate the code directly from the data you have:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set test end=last;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call execute(cats('data want; set list (rename=(',orig,'=',col));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else call execute(cats(' ',orig,'=',col));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if last then call execute(')); run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will generate a datastep with the renames from your dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216456#M53273</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-08-04T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216457#M53274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, yes it indeed a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am still wondering why my %do %while iterate only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saskap&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216457#M53274</guid>
      <dc:creator>saskapa</dc:creator>
      <dc:date>2015-08-04T13:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216458#M53275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are only selecting one value into the macro variable OLD.&amp;nbsp; If you want multiple values you need to include the SEPARATED BY clause for each macro variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;select distinct &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp; orig&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt; ,compress(col) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;into &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&amp;nbsp; : old separated by ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt; ,: new separated by ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;from test&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216458#M53275</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-04T13:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216459#M53276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you have a lot of variables you should be able to do it with one macro variable and no need for macro logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;select distinct&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; catx('=',orig,compress(col))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;into&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;&amp;nbsp; : rename separated by ' '&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt; font-style: inherit; font-weight: inherit; line-height: 1.5em;"&gt;from test&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;... rename &amp;amp;rename ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216459#M53276</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-08-04T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216460#M53277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from your code the value of &lt;STRONG&gt;&amp;amp;old &lt;/STRONG&gt;is var1. The sql should be corrected like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select distinct orig,compress(col) into :old &lt;STRONG&gt;separated by ' '&lt;/STRONG&gt;,:new&amp;nbsp; separated by ' '&lt;/P&gt;&lt;P&gt;from test;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order for the &lt;STRONG&gt;&amp;amp;old &lt;/STRONG&gt;to be &lt;STRONG&gt;var1 var2 var3&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216460#M53277</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2015-08-04T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: a rename macro : %do %while (%scan()..)   condition is FALSE not iterate again</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216461#M53278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom, it works fine&amp;nbsp; ! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 13:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/a-rename-macro-do-while-scan-condition-is-FALSE-not-iterate/m-p/216461#M53278</guid>
      <dc:creator>saskapa</dc:creator>
      <dc:date>2015-08-04T13:36:13Z</dc:date>
    </item>
  </channel>
</rss>

