<?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: confuse with %do until loop in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930904#M41895</link>
    <description>&lt;P&gt;you're right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;¡¡¡, newbie "silly" mistake&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 11:29:16 GMT</pubDate>
    <dc:creator>ppinedo</dc:creator>
    <dc:date>2024-06-05T11:29:16Z</dc:date>
    <item>
      <title>confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930893#M41888</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm getting crazy to find out the error. Can anybody help me??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ppinedo_0-1717582952275.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97018iF4F2DE1DBA34D15D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ppinedo_0-1717582952275.png" alt="ppinedo_0-1717582952275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 10:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930893#M41888</guid>
      <dc:creator>ppinedo</dc:creator>
      <dc:date>2024-06-05T10:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930895#M41889</link>
      <description>&lt;P&gt;How about this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=mc1.storm_final n mean max&amp;nbsp;maxdec=0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;class&amp;nbsp;season;
    var maxwindmph minpressure;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my solution is to not use a %DO loop or any macro language at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, please post code as text in the box that appears when you click on the "little running man" icon and please post logs as text in the box that appears when you click on the &amp;lt;/&amp;gt; icon.&amp;nbsp;&lt;STRONG&gt;DO NOT POST LOGS AND CODE AS SCREEN CAPTURES.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930895#M41889</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-05T11:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930896#M41890</link>
      <description>&lt;P&gt;ok about the image&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using your solution, same &lt;STRONG&gt;error continues:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;77         %macro storms(list);
 78         %local i;
 79         %let i=1;
 80         %do until(%scan(&amp;amp;list,&amp;amp;i) eq );
 ERROR: An unexpected semicolon occurred in the %DO statement.
 ERROR: A dummy macro will be compiled.
 81         %let n=%scan(&amp;amp;list,&amp;amp;i);
 82         title "&amp;amp;n Storms";
 83         proc means data=mc1.storm_final n min mean max maxdec=0;
 84         class season;
 85             var MaxWindMPH MinPressure;
 86             where season=&amp;amp;n;
 87         run;
 88         %let i=%sysevalf(&amp;amp;i + 1);
 89         %end;
 90         %mend storms;
 91         
 92         %storms(2011 2014)
            _
            180
 WARNING: Apparent invocation of macro STORMS not resolved.
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;message error &lt;STRONG&gt;is about %do until loop, no about proc means.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930896#M41890</guid>
      <dc:creator>ppinedo</dc:creator>
      <dc:date>2024-06-05T11:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930897#M41891</link>
      <description>&lt;P&gt;You have completely misunderstood. My solution does not use any macro %DO loops, it does not use any macro language at all. It uses&amp;nbsp; PROC MEANS with a CLASS statement, that's all you need.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930897#M41891</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-05T11:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930901#M41892</link>
      <description>&lt;P&gt;I'm studying %do while/until loops, &lt;STRONG&gt;I need to use loops&lt;/STRONG&gt; (your solution is valid but it not use loops)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930901#M41892</guid>
      <dc:creator>ppinedo</dc:creator>
      <dc:date>2024-06-05T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930902#M41893</link>
      <description>&lt;P&gt;You have omitted the % sign:&amp;nbsp; %do %until, not %do until&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930902#M41893</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-06-05T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930903#M41894</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465268"&gt;@ppinedo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm studying %do while/until loops, &lt;STRONG&gt;I need to use loops&lt;/STRONG&gt; (your solution is valid but it not use loops)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would say that the idea of learning macros is good, but you also need to learn when NOT to use macros. I would never want to see someone write a macro to do that same thing as a SAS PROC.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930903#M41894</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-05T11:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: confuse with %do until loop</title>
      <link>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930904#M41895</link>
      <description>&lt;P&gt;you're right &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;¡¡¡, newbie "silly" mistake&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 11:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/confuse-with-do-until-loop/m-p/930904#M41895</guid>
      <dc:creator>ppinedo</dc:creator>
      <dc:date>2024-06-05T11:29:16Z</dc:date>
    </item>
  </channel>
</rss>

