<?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 condition is not understood in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497617#M15498</link>
    <description>It make sense because after running the code it just write observation to the data set. Thanks for your help!!</description>
    <pubDate>Thu, 20 Sep 2018 23:19:35 GMT</pubDate>
    <dc:creator>arv</dc:creator>
    <dc:date>2018-09-20T23:19:35Z</dc:date>
    <item>
      <title>if condition is not understood</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497590#M15496</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am supposed to read the SAS script and then create mapping document. I understood the whole script except following code-&lt;/P&gt;&lt;PRE&gt;DATA EMPTSLIP;
MERGE EMPHIST (IN=A) TSLIP (IN=B);
BY ENUM NWTIME;
IF A ;
run;&lt;/PRE&gt;&lt;P&gt;In the above code "IF A" is not understood. I searched online and found codes like IF A then OUTPUT but didn't find any code like IF A. What is going on there. Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 22:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497590#M15496</guid>
      <dc:creator>arv</dc:creator>
      <dc:date>2018-09-20T22:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: if condition is not understood</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497613#M15497</link>
      <description>&lt;P&gt;SAS has a shortcut in the language.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF A;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;means the same in your context as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF A THEN OUTPUT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I prefer to use the latter to save confusion, but it's a question of programming style.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 23:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497613#M15497</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-09-20T23:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: if condition is not understood</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497617#M15498</link>
      <description>It make sense because after running the code it just write observation to the data set. Thanks for your help!!</description>
      <pubDate>Thu, 20 Sep 2018 23:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/if-condition-is-not-understood/m-p/497617#M15498</guid>
      <dc:creator>arv</dc:creator>
      <dc:date>2018-09-20T23:19:35Z</dc:date>
    </item>
  </channel>
</rss>

