<?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 else cond not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154474#M30296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is doing that you do not want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gender&amp;nbsp;&amp;nbsp;&amp;nbsp; display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&amp;nbsp;&amp;nbsp;&amp;nbsp; rakesh&amp;nbsp;&amp;nbsp;&amp;nbsp; kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goyal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&amp;nbsp;&amp;nbsp;&amp;nbsp; namita&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correct&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Nov 2013 16:29:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-11-24T16:29:10Z</dc:date>
    <item>
      <title>IF else cond not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154472#M30294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the below dataset, I want to find the record where name is not null and gender is null.&amp;nbsp; Why if condition is not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt;input id name $ gender $;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;101 rakesh kumar&lt;/P&gt;&lt;P&gt;102 . goyal&lt;/P&gt;&lt;P&gt;103 namita .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data test1;&lt;/P&gt;&lt;P&gt;set x;&lt;/P&gt;&lt;P&gt;if name ne '' and gender eq '' then display="correct";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 10:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154472#M30294</guid>
      <dc:creator>Tanja</dc:creator>
      <dc:date>2013-11-24T10:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF else cond not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154473#M30295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would review the concepts of missing values: &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#n1il1j711miuhrn1tp0pldybc6zq.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#n1il1j711miuhrn1tp0pldybc6zq.htm"&gt;SAS(R) 9.4 Language Reference: Concepts&lt;/A&gt; and more in detail working with them. &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#p175x77t7k6kggn1io94yedqagl3.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/64801/HTML/default/viewer.htm#p175x77t7k6kggn1io94yedqagl3.htm"&gt;SAS(R) 9.4 Language Reference: Concepts&lt;/A&gt;&amp;nbsp; It is the . being used as default representation of missing with numeric variables. With character vars it is ' ' the space. Special missing are possible as sometimes you have more reasons that something is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The usage of the word null is coming from a DBMS point of view that is not the same approach as missing in statistics.&lt;/P&gt;&lt;P&gt;When you are going for statistics try to see that difference and understand the origins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to you question. &lt;/P&gt;&lt;P&gt;You have read the char-variables with "." content in the datastep.&lt;/P&gt;&lt;P&gt;That is really meaningful content for strings these are not missing values.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 15:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154473#M30295</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-11-24T15:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: IF else cond not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154474#M30296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is doing that you do not want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gender&amp;nbsp;&amp;nbsp;&amp;nbsp; display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 101&amp;nbsp;&amp;nbsp;&amp;nbsp; rakesh&amp;nbsp;&amp;nbsp;&amp;nbsp; kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goyal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&amp;nbsp;&amp;nbsp;&amp;nbsp; namita&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; correct&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Nov 2013 16:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/IF-else-cond-not-working/m-p/154474#M30296</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-24T16:29:10Z</dc:date>
    </item>
  </channel>
</rss>

