<?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: Looping macro variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296540#M62159</link>
    <description>&lt;P&gt;Yes, of course. Thanks for the correction.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2016 14:04:41 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2016-09-05T14:04:41Z</dc:date>
    <item>
      <title>Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296518#M62148</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to loop the macro variable %M. The code is following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%LET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; last_month_end_dt = 31oct2015:23:59:59.000;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; num_months=5;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; i = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;num_months - &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;a = &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;"&amp;amp;last_month_end_dt"d&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; a &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;b = intnx(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'MONTH'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,a,-i,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'end'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;ddate = put(b,&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;)||&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;":23:59:59.000"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;call&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; symput(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'ddate'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,ddate);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;M&lt;/I&gt;&lt;/STRONG&gt;(TH,ddate);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;There must be some problem with formatting - any tips how to make this work? Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Jiri&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:21:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296518#M62148</guid>
      <dc:creator>Uknown_user</dc:creator>
      <dc:date>2016-09-05T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296523#M62151</link>
      <description>Hi:&lt;BR /&gt;  "%M" is not a macro variable. "%M" is a call to a macro program definition, providing 2 parameters: TH and ddate.&lt;BR /&gt;&lt;BR /&gt;  All macro programs is generate code. So when you say that %M is not working, you have to explain HOW it's not working.&lt;BR /&gt;&lt;BR /&gt;  One of the fundamental rules of macro processing is that the macro facility only generates code. So what do you envision %M is going to do. What will be critical to helping you will be understanding what %M is supposed to do.&lt;BR /&gt;&lt;BR /&gt;  Somewhere in your code, I would expect to see:&lt;BR /&gt;%macro M(parm1, parm2);&lt;BR /&gt;... some code ...&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;  So without seeing that, it is hard to comment on your question.&lt;BR /&gt;&lt;BR /&gt;And it looks like the only purpose of the macro invication is to make a macro variable called &amp;amp;ddate, Can you explain what the end result of your program should be and what is in the %M macro program?&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 05 Sep 2016 12:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296523#M62151</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-05T12:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296524#M62152</link>
      <description>&lt;P&gt;I have a code (macro called M) that does something. It is fed by two variables, as you wrote: TH,ddate. I am trying to avoid mannual running by setting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let ddate = 31oct2015:23:59:59.000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let ddate = 30sep2015:23:59:59.000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I created another variable in macro M (ddate) - there originally was just one variable. By looping through i i am trying to avoid manual running the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that ddate has value ddate instead of the dates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;15 data _null_;&lt;/P&gt;&lt;P&gt;16 do i = 0 to &amp;amp;num_months - 1;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable NUM_MONTHS resolves to 5&lt;/P&gt;&lt;P&gt;17 a = "&amp;amp;last_month_end_dt"d;&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable LAST_MONTH_END_DT resolves to 31oct2015:23:59:59.000&lt;/P&gt;&lt;P&gt;18 format a date9.;&lt;/P&gt;&lt;P&gt;19 b = intnx('MONTH',a,-i,'end');&lt;/P&gt;&lt;P&gt;20 ddate = put(b,date9.)||":23:59:59.000";&lt;/P&gt;&lt;P&gt;21 call symput('ddate',"&amp;amp;ddate"d);&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DDATE resolves to 30JUN2015:23:59:59.000&lt;/P&gt;&lt;P&gt;22 %M(TH,ddate);&lt;/P&gt;&lt;P&gt;MLOGIC(M): Beginning execution.&lt;/P&gt;&lt;P&gt;MLOGIC(M): Parameter COUNTRY has value TH&lt;/P&gt;&lt;P&gt;MLOGIC(M): Parameter DDATE has value ddate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296524#M62152</guid>
      <dc:creator>Uknown_user</dc:creator>
      <dc:date>2016-09-05T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296525#M62153</link>
      <description>Hi:&lt;BR /&gt;  I am so sorry my question was not clear. You said "I have a code (macro called M) that does something." And my question was about the "something" that the macro called M does? What is the full code -INSIDE- the %macro M and the %mend statements? What does the macro %M actually do? No one can help you based on the information you've provided so far.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 05 Sep 2016 12:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296525#M62153</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-05T12:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296526#M62154</link>
      <description>&lt;P&gt;This is only a wild guess as, as Cynthia_sas put, you don't provide the code for the macro function %M.&lt;/P&gt;
&lt;P&gt;Doesn't this macro expect a value instead of the name of a macrovariable as its second argument. If so, it should be called as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%M(TH,&amp;amp;ddate.);&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296526#M62154</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-09-05T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296527#M62155</link>
      <description>&lt;P&gt;I cannot post here the code for macro M. I only need to change the value of ddate from ddate to the dates&lt;/P&gt;&lt;P&gt;30JUN2015:23:59:59.000 when it beginns execution it said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter DDATE has value ddate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;There must be ddate has value 30JUN2015:23:59:59.000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:55:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296527#M62155</guid>
      <dc:creator>Uknown_user</dc:creator>
      <dc:date>2016-09-05T12:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296538#M62158</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;The problem with trying to use &amp;amp;DDATE as you suggest is that you can't use a macro variable in the same DATA step program where you are creating it. In the example below, my macro program %M is not doing much except a simple PROC PRINT. But if the goal is to run the macro 1 time and only 1 time using 30JUN2015:23:59:59.000 as the value for &amp;amp;ddate, then my program does that. I did not use the DO loop in the program, because I didn't understand why it was needed when all the macro variables in the %LET could have been used inside a single INTNX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As shown in my log, if you try to use &amp;amp;DDATE inside the DATA step program, it will not be resolved. But if you try to use &amp;amp;DDATE after the step boundary, then it will be used. I deleted (with %SYMDEL) the &amp;amp;DDATE macro variable before the program runs, just so it's not in the GLOBAL symbol table from a previous run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4835iACFE0ED84F9A32CB/image-size/original?v=v2&amp;amp;px=-1" alt="macro_boundary.png" title="macro_boundary.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 13:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296538#M62158</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-05T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296540#M62159</link>
      <description>&lt;P&gt;Yes, of course. Thanks for the correction.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296540#M62159</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2016-09-05T14:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296546#M62160</link>
      <description>&lt;P&gt;Thank you very much for your help. The reason for loop in that data step was to produce all different dates, i.e.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;30Jun2016:23:59:000&lt;/P&gt;&lt;P&gt;31Jul2016:23:59:000&lt;/P&gt;&lt;P&gt;30Aug2016:23:59:000&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that I would not have to mannually change %let ddate = 30Jun2016:23:59:000; to %let ddate = 31Jul2016:23:59:000; etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help. I managed to make a cycle inside macro M so there it is no longer&amp;nbsp;needed to create another data step for looping the dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296546#M62160</guid>
      <dc:creator>Uknown_user</dc:creator>
      <dc:date>2016-09-05T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Looping macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296568#M62162</link>
      <description>&lt;P&gt;To call the macro you should be using call execute. In your datastep it doesn't look like TH is ever defined.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Looping-macro-variable/m-p/296568#M62162</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-05T15:57:47Z</dc:date>
    </item>
  </channel>
</rss>

