<?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 Why no output for cases with age&amp;lt;=3 ? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13264#M1902</link>
    <description>Guys, can you tell me why there is no output for cases with age&amp;lt;=30? OUTPUT statement in the ELSE should not cause any effect.&lt;BR /&gt;
&lt;BR /&gt;
DATA work.a;&lt;BR /&gt;
  SET work.b;&lt;BR /&gt;
  IF (age&amp;gt;30) THEN status='mature';&lt;BR /&gt;
  ELSE THEN&lt;BR /&gt;
    DO;&lt;BR /&gt;
       status='young';&lt;BR /&gt;
       OUTPUT;&lt;BR /&gt;
    END;&lt;BR /&gt;
RUN;</description>
    <pubDate>Tue, 14 Jun 2011 16:17:21 GMT</pubDate>
    <dc:creator>bncoxuk</dc:creator>
    <dc:date>2011-06-14T16:17:21Z</dc:date>
    <item>
      <title>Why no output for cases with age&lt;=3 ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13264#M1902</link>
      <description>Guys, can you tell me why there is no output for cases with age&amp;lt;=30? OUTPUT statement in the ELSE should not cause any effect.&lt;BR /&gt;
&lt;BR /&gt;
DATA work.a;&lt;BR /&gt;
  SET work.b;&lt;BR /&gt;
  IF (age&amp;gt;30) THEN status='mature';&lt;BR /&gt;
  ELSE THEN&lt;BR /&gt;
    DO;&lt;BR /&gt;
       status='young';&lt;BR /&gt;
       OUTPUT;&lt;BR /&gt;
    END;&lt;BR /&gt;
RUN;</description>
      <pubDate>Tue, 14 Jun 2011 16:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13264#M1902</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-06-14T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why no output for cases with age&lt;=3 ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13265#M1903</link>
      <description>Guys, can you tell me why there is no output for cases with age below 30? The output statement should not cause effect, as it is associated with else only.&lt;BR /&gt;
&lt;BR /&gt;
DATA work.a; &lt;BR /&gt;
  SET work.b; &lt;BR /&gt;
  IF (age&amp;gt;30) THEN status='mature';&lt;BR /&gt;
  ELSE THEN DO; &lt;BR /&gt;
    status='young'; &lt;BR /&gt;
    OUTPUT; &lt;BR /&gt;
    END; &lt;BR /&gt;
RUN;</description>
      <pubDate>Tue, 14 Jun 2011 16:20:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13265#M1903</guid>
      <dc:creator>bncoxuk</dc:creator>
      <dc:date>2011-06-14T16:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why no output for cases with age&lt;=3 ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13266#M1904</link>
      <description>Have a look at your log file for that code.  You should be getting a syntax error - the "THEN" keyword is only used in the IF statement and isn't needed for ELSE.</description>
      <pubDate>Tue, 14 Jun 2011 16:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13266#M1904</guid>
      <dc:creator>DF</dc:creator>
      <dc:date>2011-06-14T16:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why no output for cases with age&lt;=3 ?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13267#M1905</link>
      <description>I have to ask why you double-posted your query/problem in this forum?  Recommend you stay with one post, one topic-point or issue/problem/query....suggested forum etiquette.&lt;BR /&gt;
&lt;BR /&gt;
Here's your first one:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=14647" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=14647&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.

Message was edited by: sbb</description>
      <pubDate>Tue, 14 Jun 2011 17:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Why-no-output-for-cases-with-age-lt-3/m-p/13267#M1905</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-06-14T17:08:29Z</dc:date>
    </item>
  </channel>
</rss>

