<?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: If statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433287#M107398</link>
    <description>&lt;P&gt;The IF statement is a pointless red herring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates a value of GROUP for records with a value of AGE meeting a condition, but then noting is done with it.&amp;nbsp; It's stupid and not anything you would write in real life.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 21:29:28 GMT</pubDate>
    <dc:creator>HB</dc:creator>
    <dc:date>2018-02-01T21:29:28Z</dc:date>
    <item>
      <title>If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433280#M107395</link>
      <description>&lt;P&gt;When I look at this question, I thought the answer should be 4 variables including a new variable ``Group``. However, the correct the answer is 3. I am a bit confused about the IF statement, what is the result for this IF statement then?&amp;nbsp; Thanks for help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="If statement.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18260i7156BB6819FDEC9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="If statement.JPG" alt="If statement.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433280#M107395</guid>
      <dc:creator>Fiery</dc:creator>
      <dc:date>2018-02-01T21:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433286#M107397</link>
      <description>&lt;P&gt;There's a stand-alone KEEP statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;keep name height weight;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The stand-alone statement applies to the output, not the input.&amp;nbsp; So the output data set contains only those three variables.&amp;nbsp; It doesn't matter how many variables are part of the input, or how many variables get created along the way by programming statements.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433286#M107397</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-01T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433287#M107398</link>
      <description>&lt;P&gt;The IF statement is a pointless red herring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It creates a value of GROUP for records with a value of AGE meeting a condition, but then noting is done with it.&amp;nbsp; It's stupid and not anything you would write in real life.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433287#M107398</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2018-02-01T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433636#M107532</link>
      <description>&lt;P&gt;Thanks for your reply. Is there something wrong this the IF statement? What if we do want to create a variable Group to set age &amp;gt;=13 to be "Teen". How would you write the programme to make it appear to the output? Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433636#M107532</guid>
      <dc:creator>Fiery</dc:creator>
      <dc:date>2018-02-02T18:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433656#M107537</link>
      <description>&lt;P&gt;You would need to add a fourth variable to the list of those being kept:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;keep name height weight group;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The rest of the program could remain unchanged.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/433656#M107537</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-02T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: If statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/434188#M107732</link>
      <description>Thanks!</description>
      <pubDate>Mon, 05 Feb 2018 15:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-statement/m-p/434188#M107732</guid>
      <dc:creator>Fiery</dc:creator>
      <dc:date>2018-02-05T15:11:55Z</dc:date>
    </item>
  </channel>
</rss>

