<?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: Replace Missing (.) values with &amp;quot;0&amp;quot; using EG Project in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309408#M20869</link>
    <description>&lt;P&gt;Your mention of the Missing function got me to thinking more along those lines and I was able to use it to identify those records with missing data and then update to zero based on that result. &amp;nbsp;Gave me the result I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 20:31:27 GMT</pubDate>
    <dc:creator>srussell</dc:creator>
    <dc:date>2016-11-04T20:31:27Z</dc:date>
    <item>
      <title>Replace Missing (.) values with "0" using EG Project</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309342#M20862</link>
      <description>&lt;P&gt;I have two data sets.... one contains Billing Information and the other contains payments / adjustments. &amp;nbsp;The output of a join for the two sets has created a set of records where there have been no payments or adjustments causing the two fields (Cash and Adjustments) be flagged as Missing (.) on those records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to calcluate Total AR as well as the current Invoice Balance, I need the Missing (.) to show as zero (0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've read several posts on this topic and thought I had a solution, however I'm getting a mixed bag of results with&amp;nbsp;my variations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IFN(t1.'Cash Applied'n &amp;gt; 0 or t1.'Cash Applied'n &amp;lt; 0, t1.'Cash Applied'n, 0, 0)&lt;/STRONG&gt; - &amp;nbsp;&lt;FONT color="#FF0000"&gt;Populates accurate original data (both positive and negative) when it was NOT missing but does NOT convert missing (.) to zero (0).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;IFN(t1.'Cash Applied'n &amp;gt; 0, t1.'Cash Applied'n, 0, 0)&lt;/STRONG&gt; - &lt;FONT color="#FF0000"&gt;Populates&amp;nbsp;original data (only if positive - negatives are lost) AND successfully converts missing (.) to zero (0).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;IFN(t1.'Cash Applied'n &amp;lt; 0, t1.'Cash Applied'n, 0, 0)&lt;/STRONG&gt; - &lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Populates&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;original data (only if negative&amp;nbsp;- positives&amp;nbsp;are lost) but does NOT convert missing (.) to zero (0).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've even tried pulling negatives out and adding them back after a successful positive conversion, but it then reverts the value back to missing. &amp;nbsp;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;Essentially, the missing (.) to zero (0) conversion works great for positive numbers, and fails anytime I try to handle the negative values.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any feedback you guys can provide would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SAS EG 7.1 (64 bit)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309342#M20862</guid>
      <dc:creator>srussell</dc:creator>
      <dc:date>2016-11-04T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Missing (.) values with "0" using EG Project</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309344#M20863</link>
      <description>&lt;P&gt;Did you look at the tips in this post: &lt;A href="https://communities.sas.com/t5/SAS-Procedures/How-to-set-all-missing-values-to-zero-for-all-variables/td-p/41478" target="_self"&gt;How to set all missing values to zero&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC STDIZE might be the easiest thing, using REPONLY and MISSING=0.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309344#M20863</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-11-04T16:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Missing (.) values with "0" using EG Project</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309351#M20864</link>
      <description>&lt;P&gt;Is there some reason you don't want to use the MISSING function to test for a missing value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you compare . &amp;lt; 0 the result is true so your &lt;STRONG&gt;t1.'Cash Applied'n &amp;gt; 0 or t1.'Cash Applied'n &amp;lt; 0&lt;/STRONG&gt; will resolve to true when the variable value is missing, not missing for the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A case statement using when&amp;nbsp;missing(&lt;STRONG&gt;t1.'Cash Applied'n) &lt;/STRONG&gt;might be a better approach.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 16:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309351#M20864</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-04T16:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Missing (.) values with "0" using EG Project</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309408#M20869</link>
      <description>&lt;P&gt;Your mention of the Missing function got me to thinking more along those lines and I was able to use it to identify those records with missing data and then update to zero based on that result. &amp;nbsp;Gave me the result I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 20:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Replace-Missing-values-with-quot-0-quot-using-EG-Project/m-p/309408#M20869</guid>
      <dc:creator>srussell</dc:creator>
      <dc:date>2016-11-04T20:31:27Z</dc:date>
    </item>
  </channel>
</rss>

