<?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 Peculiar Behavior of DO in a SELECT Block in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644225#M192402</link>
    <description>&lt;P&gt;I just came across code that looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input x1;
select (x1);
  when (1) do
    x2 = 1;
    x3 = 1;
  end;
  otherwise;
end;
datalines;
1
0
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I immediately thought "ERROR because of missing semicolon!", but this code works, and it even works as obviously intended.&lt;/P&gt;
&lt;P&gt;Does anybody know why SAS does not complain here?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 12:14:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-30T12:14:49Z</dc:date>
    <item>
      <title>Peculiar Behavior of DO in a SELECT Block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644225#M192402</link>
      <description>&lt;P&gt;I just came across code that looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input x1;
select (x1);
  when (1) do
    x2 = 1;
    x3 = 1;
  end;
  otherwise;
end;
datalines;
1
0
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I immediately thought "ERROR because of missing semicolon!", but this code works, and it even works as obviously intended.&lt;/P&gt;
&lt;P&gt;Does anybody know why SAS does not complain here?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644225#M192402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-30T12:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Peculiar Behavior of DO in a SELECT Block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644227#M192404</link>
      <description>&lt;P&gt;Yes, it's the &lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p1cydk5fq0u4bfn1xfbjt7w1c7lu.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;&lt;EM&gt;iterative&lt;/EM&gt; DO statement&lt;/A&gt;&amp;nbsp;(with &lt;FONT face="courier new,courier"&gt;x2&lt;/FONT&gt; as the index variable), just written in a "peculiar" way, not a &lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=n0el0y2a02ab1ln1pks3gbac1en3.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;DO-END block&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644227#M192404</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-04-30T12:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Peculiar Behavior of DO in a SELECT Block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644232#M192408</link>
      <description>&lt;P&gt;Oh yes, that's it! It works, but it nicely fits a schlockmercenary quote I posted yesterday:&lt;/P&gt;
&lt;P&gt;"When it's stupid and it works, it's still stupid, and you're lucky"&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 12:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Peculiar-Behavior-of-DO-in-a-SELECT-Block/m-p/644232#M192408</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-30T12:39:13Z</dc:date>
    </item>
  </channel>
</rss>

