<?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: Can proc compare treat zero and null as the same? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707416#M37900</link>
    <description>I would have hoped there there was an option to allow all empty values to be treated as equal. Like isempty() in most languages. Zero == null and (empty string) "" == null.</description>
    <pubDate>Mon, 21 Dec 2020 12:04:30 GMT</pubDate>
    <dc:creator>Martin_Bryant</dc:creator>
    <dc:date>2020-12-21T12:04:30Z</dc:date>
    <item>
      <title>Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707387#M37898</link>
      <description>&lt;P&gt;I know that there is the&amp;nbsp;&lt;STRONG&gt;NOMISSING &lt;/STRONG&gt;option to ignore missing values entirely, but I just want to be able to treat nulls in numeric fields as equal to a zero, but not equal to any non-zero value. Is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 09:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707387#M37898</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2020-12-21T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707397#M37899</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/354322"&gt;@Martin_Bryant&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I know that there is the&amp;nbsp;&lt;STRONG&gt;NOMISSING &lt;/STRONG&gt;option to ignore missing values entirely, but I just want to be able to treat nulls in numeric fields as equal to a zero, but not equal to any non-zero value. Is this possible?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't see an option to tread missing values as zeros. Attaching a format to the variable does not work as expected, same for using the missing-option.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707397#M37899</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-12-21T10:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707416#M37900</link>
      <description>I would have hoped there there was an option to allow all empty values to be treated as equal. Like isempty() in most languages. Zero == null and (empty string) "" == null.</description>
      <pubDate>Mon, 21 Dec 2020 12:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707416#M37900</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2020-12-21T12:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707540#M37901</link>
      <description>&lt;P&gt;Nope.&amp;nbsp; You could make versions of your data that replace missing with zero and then compare those versions.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc stdize data=A out=A_zero missing=0 reponly;
  var _numeric_;
run;
proc stdize data=B out=B_zero missing=0 reponly;
  var _numeric_;
run;
proc compare data=A_zero compare=B_zero ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707540#M37901</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-21T17:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707626#M37904</link>
      <description>Thanks, I'll have to learn exactly how that works, but sounds a possibility.</description>
      <pubDate>Tue, 22 Dec 2020 10:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/707626#M37904</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2020-12-22T10:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can proc compare treat zero and null as the same?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/708532#M37910</link>
      <description>Whilst this is a good work around, I need something that I can use on multiple projects and I was hoping for minimal effort. (I'm a lazy sod.) Anyway, thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 29 Dec 2020 08:45:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Can-proc-compare-treat-zero-and-null-as-the-same/m-p/708532#M37910</guid>
      <dc:creator>Martin_Bryant</dc:creator>
      <dc:date>2020-12-29T08:45:24Z</dc:date>
    </item>
  </channel>
</rss>

