<?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: what does null (missing variables) stand for? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730249#M227365</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366546"&gt;@ResoluteCarbon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering what does Null stand for? Does it can be used to replace missing in both character and numeric data.&lt;/P&gt;
&lt;P&gt;The background is that, the missing variable in character column is represented as " " while it is "." in numeric column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ResoluteCarbon_0-1617141516306.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56682iDD59690F4587E3CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ResoluteCarbon_0-1617141516306.png" alt="ResoluteCarbon_0-1617141516306.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I mean is, for the example above, whether we can wrote ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where Age =null;

/*or*/

where Name = null;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;NULL does NOT mean missing - it means a variable named "null".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where missing(varname);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The MISSING function works on both numeric and character variables.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 22:11:41 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2021-03-30T22:11:41Z</dc:date>
    <item>
      <title>what does null (missing variables) stand for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730216#M227363</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering what does Null stand for? Does it can be used to replace missing in both character and numeric data.&lt;/P&gt;&lt;P&gt;The background is that, the missing variable in character column is represented as " " while it is "." in numeric column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ResoluteCarbon_0-1617141516306.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56682iDD59690F4587E3CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ResoluteCarbon_0-1617141516306.png" alt="ResoluteCarbon_0-1617141516306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I mean is, for the example above, whether we can wrote ?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where Age =null;

/*or*/

where Name = null;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 21:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730216#M227363</guid>
      <dc:creator>ResoluteCarbon</dc:creator>
      <dc:date>2021-03-30T21:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: what does null (missing variables) stand for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730248#M227364</link>
      <description>&lt;P&gt;The keyword NULL has meaning in SQL.&amp;nbsp; It can be used to replace either numeric missing (the period) or all blank character string you would normally use in regular SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because SAS consolidated the code/logic used to evaluate WHERE statements with the way they process SQL code you can use it in WHERE statements outside of PROC SQL.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;522   data x;
523    set sashelp.class;
524    where age is null;
525   run;

NOTE: There were 0 observations read from the data set SASHELP.CLASS.
      WHERE age is null;
NOTE: The data set WORK.X has 0 observations and 5 variables.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you use the string NULL in regular SAS statement it is just a reference to a variable with that name.&lt;/P&gt;
&lt;PRE&gt;530   data z;
531    set sashelp.class;
532    if age = null ;
533   run;

NOTE: Variable null is uninitialized.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Mar 2021 22:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730248#M227364</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-30T22:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: what does null (missing variables) stand for?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730249#M227365</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/366546"&gt;@ResoluteCarbon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering what does Null stand for? Does it can be used to replace missing in both character and numeric data.&lt;/P&gt;
&lt;P&gt;The background is that, the missing variable in character column is represented as " " while it is "." in numeric column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ResoluteCarbon_0-1617141516306.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56682iDD59690F4587E3CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ResoluteCarbon_0-1617141516306.png" alt="ResoluteCarbon_0-1617141516306.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What I mean is, for the example above, whether we can wrote ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where Age =null;

/*or*/

where Name = null;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;NULL does NOT mean missing - it means a variable named "null".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where missing(varname);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The MISSING function works on both numeric and character variables.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 22:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-does-null-missing-variables-stand-for/m-p/730249#M227365</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-03-30T22:11:41Z</dc:date>
    </item>
  </channel>
</rss>

