<?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: Macro Variable Not Printed in Data Do Loop for Every i in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507499#M136241</link>
    <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I've tried your code and verified that u is indeed a global macro variable. Thank you so much for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Chin&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 14:53:31 GMT</pubDate>
    <dc:creator>chinli72</dc:creator>
    <dc:date>2018-10-25T14:53:31Z</dc:date>
    <item>
      <title>Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507463#M136226</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Please help me to explain why in below the "%put &amp;amp;=u" is executed only once during the do-loop when i=5, while "put i=" is executed every iteration of the loop. The evidence is in the log below the code under line 76 and under line 79. Many thanks for the help.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop;
 do i=1 to 5;
   call symput("u",put(i, 1.));
   %put &amp;amp;=u;
   put i=;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to /folders/myfolders/.sasstudio/.images/68d8567e-556b-4297-83b9-f0b6abc1b09d
 SYMBOLGEN:  Some characters in the above value which were subject to macro quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to  
 72         
 73         data loop;
 74          do i=1 to 5;
 75            call symput("u",put(i, 1.));
 76            %put &amp;amp;=u;
 SYMBOLGEN:  Macro variable U resolves to            5
 U=           5
 77            put i=;
 78          end;
 79         run;
 
 i=1
 i=2
 i=3
 i=4
 i=5
 NOTE: The data set WORK.LOOP has 1 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
   &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:44:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507463#M136226</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T12:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507465#M136227</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop / debug;
 do i=1 to 5;
   call symput("u",put(i, 1.));
   %put &amp;amp;=u;
   put i=;
   output;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;have you tried the debugger?&lt;/P&gt;&lt;P&gt;the process works as written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop ;
 do i=1 to 5;
   call symput("u",put(i, 1.));
   put i=;
	%put &amp;amp;=u;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507465#M136227</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-25T12:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507466#M136228</link>
      <description>&lt;P&gt;You need to understand that Macro and Datastep are two very different things.&amp;nbsp; This has been explained many times on this forum, and in the documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n189qvy83pmkt6n1bq2mmwtyb4oe.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#n189qvy83pmkt6n1bq2mmwtyb4oe.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do not mix macro an datastep up, they are two separate systems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can explain what you are trying to do, we can show a better way.&amp;nbsp; However for the moment, you create the macro variables in the datastep execution, then after the execution, you can then use those macro variables:&lt;/P&gt;
&lt;PRE&gt;data loop;
 do i=1 to 5;
   call symputx(cats("u",put(i, 1.)),put(i,best.));
   put i=;
 end;
run;
%put &amp;amp;u1.;
%put &amp;amp;u2.;&lt;/PRE&gt;
&lt;P&gt;Otherwise the only variable printed will be the last iteration, after the datastep has finished executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oh, and you have a typo, %put &amp;amp;=u;&amp;nbsp; should read, %put &amp;amp;u.;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507466#M136228</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-25T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507467#M136229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185276"&gt;@chinli72&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a macro statement, %PUT is executed &lt;EM&gt;before&lt;/EM&gt; the DATA step (in this case even before the &lt;EM&gt;compilation&lt;/EM&gt; of the DATA step has finished). If you&amp;nbsp;run this code in a new SAS session (where macro variable U has not been defined yet), you will therefore get a warning message&lt;/P&gt;
&lt;PRE&gt;WARNING: Apparent symbolic reference U not resolved.&lt;/PRE&gt;
&lt;P&gt;So, writing a %PUT statement (or, e.g., a %LET&amp;nbsp;statement) in the middle of a DATA step is misleading. It suggests that it will be executed between the DATA step statements (e.g. in your case return the value assigned by the CALL SYMPUT routine preceding the %PUT statement), but this is not the case.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507467#M136229</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-25T12:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507471#M136231</link>
      <description>Thank you for the Debug suggestion. Unfortunately, when I tried it using SAS University Edition,it say the debugger can not be initialized. I think it is not available.&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507471#M136231</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T13:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507474#M136232</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt; SYMBOLGEN:  &lt;SPAN class="token procnames"&gt;Macro&lt;/SPAN&gt; variable U resolves to            &lt;SPAN class="token number"&gt;5&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;"U" will not be resolved to anything if you run the same program you provided, you will get that log if you run the same program the second time.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to understand how SYMPUT works. You cannot reference the macro to retrieve the value in the same program in which SYMPUT creates that macro variable and assigns a value to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Problem Trying to Reference a SYMPUT-Assigned Value Before It Is Available&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;One of the most common problems in using SYMPUT is trying to reference a macro variable value assigned by SYMPUT before that variable is created. The failure generally occurs because the statement referencing the macro variable compiles before execution of the CALL SYMPUT statement that assigns the variable's value. The most important fact to remember in using SYMPUT is that it assigns the value of the macro variable during program execution. Macro variable references resolve during the compilation of a step, a global statement used outside a step, or an SCL program. As a result:&lt;BR /&gt;- &lt;STRONG&gt;You cannot use a macro variable reference to retrieve the value of a macro variable in the same program (or step) in which SYMPUT creates that macro variable and assigns it a value.&lt;/STRONG&gt;&lt;BR /&gt;- You must specify a step boundary statement to force the DATA step to execute before referencing a value in a global statement following the program (for example, a TITLE statement). The boundary could be a RUN statement or another DATA or PROC statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;BR /&gt;data x;&lt;BR /&gt; x='December';&lt;BR /&gt; call symput('var',x);&lt;BR /&gt;proc print;&lt;BR /&gt;title "Report for &amp;amp;var";&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#p09y28i2d1kn8qn1p1icxchz37p3.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#p09y28i2d1kn8qn1p1icxchz37p3.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:16:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507474#M136232</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-10-25T13:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507475#M136233</link>
      <description>&lt;P&gt;%put is macro statement not data step statement, and %put is global .&lt;/P&gt;
&lt;P&gt;The following code could help you to understand WHY .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop;
 do i=1 to 5;
   call symput("u",put(i, 1. -l));
   put i=;
 end;
run;


%put WARNING: &amp;amp;u;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507475#M136233</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-25T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507476#M136234</link>
      <description>&lt;P&gt;%put is macro statement not data step statement, and %put is global .&lt;/P&gt;
&lt;P&gt;The following code could help you to understand WHY .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data loop;
 do i=1 to 5;
   call symput("u",put(i, 1. -l));
   put i=;
 end;
run;


%put WARNING: &amp;amp;u;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:19:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507476#M136234</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-25T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507478#M136235</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you for your explanations and code example. While I was coding the macro code below and thought if I could do a similar thing in DATA step. Based on you example code, I can't macro "%put" the similar way as I use data step&amp;nbsp; "put". It is not that obvious for a SAS beginner.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;option nomlogic nosymbolgen;
%macro mloop;
   %do i=1 %to 5;
      %let m=&amp;amp;i;
      %put &amp;amp;=m;
   %end;
%mend;
%mloop;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507478#M136235</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507481#M136237</link>
      <description>&lt;P&gt;To create another example demonstrating the timing, you could write this %PUT statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put Macro: %sysfunc(time(), time8.); /* just to demonstrate the timing */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;into a DATA _NULL_ step, &lt;EM&gt;after&lt;/EM&gt; the statements below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call sleep(5,1); 
t=time();
put 'DATA step: ' t time8.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(but &lt;EM&gt;before&lt;/EM&gt; the RUN statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then compare the (misleading) order of the PUT and %PUT statements to the results in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185276"&gt;@chinli72&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I can't macro "%put" the similar way as I use data step&amp;nbsp; "put". It is not that obvious for a SAS beginner.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Indeed. And it shows that it's a good idea "&lt;SPAN&gt;for a SAS beginner" not to learn DATA step programming and SAS macro programming in parallel, but to become familiar with the DATA step &lt;EM&gt;first&lt;/EM&gt;. This will save you a lot of headaches.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507481#M136237</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-25T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507483#M136238</link>
      <description>&lt;P&gt;Yes, that code is all running in the macro pre-processor.&amp;nbsp; In fact datastep is not used at all an nothing is compiled.&amp;nbsp; The same things from a datastep would be:&lt;/P&gt;
&lt;PRE&gt;data want;
  do i=1 to 5;
    output;
  end;
run;

proc print data=want;
run;&lt;/PRE&gt;
&lt;P&gt;I would advise that you learn Base SAS (also known as Datastep) first, and fully.&amp;nbsp; All code can be done in that, and all macro is there to do is generate some text which can be Base SAS code.&amp;nbsp; Do not fall into the usual issue of trying to code things in Macro, it is not for that, it is for a specific function nothing more.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 13:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507483#M136238</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-25T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507492#M136239</link>
      <description>&lt;P&gt;Macro statement is run 1st even though it appears that data step is. I do recall that I read in a book by Delwiche and Slaughter which talked about macro statements are processed by macro processor first before SAS processor. That didn't mean much till I see your explanation. Thank you so much.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507492#M136239</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T14:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507497#M136240</link>
      <description>&lt;P&gt;Thank you for quoting the original source of the explanation of the phenomenon. You are basically telling me that I can't use Call SYMPUT and %PUT in the same data step because the macro variable is yet generated by Call SYMPUT when %put is using it. Boy that is just not so obvious. Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:49:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507497#M136240</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T14:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507499#M136241</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I've tried your code and verified that u is indeed a global macro variable. Thank you so much for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Chin&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:53:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507499#M136241</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T14:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Variable Not Printed in Data Do Loop for Every i</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507500#M136242</link>
      <description>&lt;P&gt;Hi FreelanceReinhard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I've tested your code and found that "%put Macro:.." finishes before t=time();. Indeed, macro gets run first. Thank you so much for the brilliant demonstration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 15:01:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-Variable-Not-Printed-in-Data-Do-Loop-for-Every-i/m-p/507500#M136242</guid>
      <dc:creator>chinli72</dc:creator>
      <dc:date>2018-10-25T15:01:11Z</dc:date>
    </item>
  </channel>
</rss>

