<?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: SAS Tip: Convert MISSING to 0 in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Convert-MISSING-to-0/m-p/476023#M191</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc stdize data=sashelp.class out=want missing=0 reponly;
var weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Jul 2018 14:38:19 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-07-06T14:38:19Z</dc:date>
    <item>
      <title>SAS Tip: Convert MISSING to 0</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Convert-MISSING-to-0/m-p/476013#M189</link>
      <description>&lt;P&gt;I often need to store a 0 value in place of missing when reporting numeric values. I take advantage of the SUM&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for this purpose. For each variable I sum itself with 0 as in:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;COST = SUM(COST, 0);
&lt;/PRE&gt;
&lt;P&gt;The SUM function ignores missing values. So if COST is not missing, no change occurs. If COST is missing, it is now 0.&lt;/P&gt;
&lt;P&gt;If only the display of missing values as 0 as needed, use the options statement (which does not change the internal value):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options missing = '0 ';
&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;EM&gt;Originally posted by Terry on sasCommunity.org.&lt;/EM&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Convert-MISSING-to-0/m-p/476013#M189</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-07-06T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Tip: Convert MISSING to 0</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Convert-MISSING-to-0/m-p/476023#M191</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc stdize data=sashelp.class out=want missing=0 reponly;
var weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jul 2018 14:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Convert-MISSING-to-0/m-p/476023#M191</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-07-06T14:38:19Z</dc:date>
    </item>
  </channel>
</rss>

