<?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: do loop when using an external macro in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593443#M76048</link>
    <description>&lt;P&gt;Most likely the macro you are calling is using the macro variable I and J, and unlike the little example macro I posted they did NOT make the macro variable LOCAL to the macro. So they modified your macro variable's values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can just change the %DO loops to use other macro variable names that do not conflict.&amp;nbsp; The names used for the macro variables don't matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is a macro that you control you should fix that mistake.&amp;nbsp; Your macros need to learn how to play well with others.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.goodreads.com/work/quotes/2399046-all-i-really-need-to-know-i-learned-in-kindergarten" target="_blank"&gt;https://www.goodreads.com/work/quotes/2399046-all-i-really-need-to-know-i-learned-in-kindergarten&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 15:53:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-10-02T15:53:26Z</dc:date>
    <item>
      <title>do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593425#M76042</link>
      <description>&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a bit of an issue with a macro.&amp;nbsp; The macro uses criterion methods to find the properly fitting model.&amp;nbsp; With this, it is necessary to run multiple models and compare the best fit.&amp;nbsp; As I have worked out the number of models that I would have to run for my project, the number is rather large.&amp;nbsp; The script below is the call for the macro.&amp;nbsp; The model command is what has to be changed with each new run. In the present model, it is 1 2 the next model would be 1 3.&amp;nbsp; To me this seems to be a prime candidate for a nested do loops. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ttm (&lt;FONT&gt;data = prac,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;time = time;&amp;nbsp;&lt;BR /&gt;dv = marijuana,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;iv = sensation&amp;nbsp;&lt;BR /&gt;model = 1 2&amp;nbsp;&lt;BR /&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set my do loops up as follows: &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I = 1 to 5;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do j = 1 to 5;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%ttm (&lt;FONT&gt;data = prac,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;time = time;&amp;nbsp;&lt;BR /&gt;dv = marijuana,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;iv = sensation&amp;nbsp;&lt;BR /&gt;model = I j&lt;BR /&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;end;&amp;nbsp;&lt;/P&gt;&lt;P&gt;end;&amp;nbsp;&lt;/P&gt;&lt;P&gt;drop I j;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The real issue here is that the model command in the macro is reading the I and j as letters and not as place holders for the numbers the do loops are creating.&amp;nbsp; To complicate things, I did not write the original macro and am only using it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the do loops outside of this environment and they are producing the desired numbers.&amp;nbsp; Further, other pieces of my programs are working wonderfully using the numbers the do loops are generating.&amp;nbsp; How would I get the macro to recognize the numbers the do loops are generating rather than it recognizing the I and j as letters?&amp;nbsp; I would prefer not to run, literally, 200 models singularly, but I would prefer to be efficient and accurate by using a loop. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are welcomed.&amp;nbsp; Thank you&lt;/P&gt;&lt;P&gt;George&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593425#M76042</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-02T15:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593428#M76044</link>
      <description>&lt;P&gt;Is the macro you are calling only generating part of a single data step?&amp;nbsp; If not then it cannot be called in the middle of DEFINING a data step.&lt;/P&gt;
&lt;P&gt;Do you want to make a macro and %DO loops?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro call_many;
%local i j ;
%do I = 1 %to 5; 
  %do j = 1 %to 5; 

%ttm 
(data = prac
,time = time
,dv = marijuana
,iv = sensation 
,model = &amp;amp;i &amp;amp;j
);

  %end;
%end;
%mend;
%call_many;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593428#M76044</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-02T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593441#M76046</link>
      <description>&lt;P&gt;Or use CALL EXECUTE within a data step or a macro loop?&lt;/P&gt;
&lt;P&gt;What do you mean by external macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some references that may be helpful.&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Tutorial on converting a working program to a macro - illustrated for call execute - see last portion&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This method is pretty robust and helps prevent errors and makes it much easier to debug your code. Obviously biased, because I wrote it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/Turning%20a%20program%20into%20a%20macro.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Examples of common macro usage - common examples of loops&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-9-4-Macro-Language-Reference-Has-a-New-Appendix/ta-p/291716&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/02/13/run-1000-regressions.html&lt;/A&gt;&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/293189"&gt;@George3&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a bit of an issue with a macro.&amp;nbsp; The macro uses criterion methods to find the properly fitting model.&amp;nbsp; With this, it is necessary to run multiple models and compare the best fit.&amp;nbsp; As I have worked out the number of models that I would have to run for my project, the number is rather large.&amp;nbsp; The script below is the call for the macro.&amp;nbsp; The model command is what has to be changed with each new run. In the present model, it is 1 2 the next model would be 1 3.&amp;nbsp; To me this seems to be a prime candidate for a nested do loops. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%ttm (&lt;FONT&gt;data = prac,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;time = time;&amp;nbsp;&lt;BR /&gt;dv = marijuana,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;iv = sensation&amp;nbsp;&lt;BR /&gt;model = 1 2&amp;nbsp;&lt;BR /&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have set my do loops up as follows: &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do I = 1 to 5;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do j = 1 to 5;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%ttm (&lt;FONT&gt;data = prac,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;time = time;&amp;nbsp;&lt;BR /&gt;dv = marijuana,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;iv = sensation&amp;nbsp;&lt;BR /&gt;model = I j&lt;BR /&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;end;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;end;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;drop I j;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The real issue here is that the model command in the macro is reading the I and j as letters and not as place holders for the numbers the do loops are creating.&amp;nbsp; To complicate things, I did not write the original macro and am only using it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested the do loops outside of this environment and they are producing the desired numbers.&amp;nbsp; Further, other pieces of my programs are working wonderfully using the numbers the do loops are generating.&amp;nbsp; How would I get the macro to recognize the numbers the do loops are generating rather than it recognizing the I and j as letters?&amp;nbsp; I would prefer not to run, literally, 200 models singularly, but I would prefer to be efficient and accurate by using a loop. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions are welcomed.&amp;nbsp; Thank you&lt;/P&gt;
&lt;P&gt;George&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593441#M76046</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-02T15:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593442#M76047</link>
      <description>&lt;P&gt;Hello Tom,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is wonderful, but I have a concern. &amp;nbsp;This is working but I need some information about this.&amp;nbsp; To test the method, I made an alteration to the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token macrostatement" style="box-sizing: inherit; color: blue; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; I &lt;/SPAN&gt;&lt;SPAN class="token operator" style="box-sizing: inherit; color: #a67f59; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number" style="box-sizing: inherit; color: #008080; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token macrostatement" style="box-sizing: inherit; color: blue; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;%to&lt;/SPAN&gt; 2&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token macrostatement" style="box-sizing: inherit; color: blue; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: black; direction: ltr; font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5; -ms-hyphens: none; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-shadow: 0px 1px white; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: normal; word-spacing: normal;"&gt; j &lt;/SPAN&gt;&lt;SPAN class="token operator" style="box-sizing: inherit; color: #a67f59; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number" style="box-sizing: inherit; color: #008080; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token macrostatement" style="box-sizing: inherit; color: blue; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;%to&lt;/SPAN&gt; 2&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was under the impression that values would be bound between 1 and 2. When it was run, my first run was 1 1 but my second run was 3 2. It seems to me the 3 2 would be out of bounds. Help me understand how to control the numbers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation" style="box-sizing: inherit; color: #999999; font-family: Consolas,Monaco,&amp;amp;quot; andale mono&amp;amp;quot;,&amp;amp;quot;ubuntu mono&amp;amp;quot;,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;George &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593442#M76047</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-02T15:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593443#M76048</link>
      <description>&lt;P&gt;Most likely the macro you are calling is using the macro variable I and J, and unlike the little example macro I posted they did NOT make the macro variable LOCAL to the macro. So they modified your macro variable's values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you can just change the %DO loops to use other macro variable names that do not conflict.&amp;nbsp; The names used for the macro variables don't matter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is a macro that you control you should fix that mistake.&amp;nbsp; Your macros need to learn how to play well with others.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.goodreads.com/work/quotes/2399046-all-i-really-need-to-know-i-learned-in-kindergarten" target="_blank"&gt;https://www.goodreads.com/work/quotes/2399046-all-i-really-need-to-know-i-learned-in-kindergarten&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593443#M76048</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-02T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593444#M76049</link>
      <description>It's possible the external macro is using the same variables and incrementing i, because those are commonly used macro variables.</description>
      <pubDate>Wed, 02 Oct 2019 15:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593444#M76049</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-02T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593470#M76052</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The naming conventions were the problem.&amp;nbsp; I changed them to what follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;%local a b ;&lt;BR /&gt;%do a = 1 %to 2;&lt;BR /&gt;&amp;nbsp; %do b = 1 %to 2; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;In the model statement, it reads:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;model &amp;amp;a &amp;amp;b;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The system is spectacularly controlled now as expected.&amp;nbsp; Thank you both for your time and suggestions.&amp;nbsp; This is a tremendous help.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593470#M76052</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-02T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: do loop when using an external macro</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593471#M76053</link>
      <description>&lt;P&gt;I will give these a read. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/do-loop-when-using-an-external-macro/m-p/593471#M76053</guid>
      <dc:creator>George3</dc:creator>
      <dc:date>2019-10-02T16:59:38Z</dc:date>
    </item>
  </channel>
</rss>

