<?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: PROC SQL: can you replace missing value(s)?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230104#M268029</link>
    <description>&lt;P&gt;Why SQL and not a data step?&lt;/P&gt;&lt;P&gt;IMHO the most elegant solution is the coalesce() coalescec() functions.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Oct 2015 15:24:55 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-10-15T15:24:55Z</dc:date>
    <item>
      <title>PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230100#M268027</link>
      <description>&lt;P&gt;Simple data pull, not merging tables or anything. Can I replace null values in PROC SQL statement like I can in the following DATA satement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA TABLE1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SET TABLE2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; IF OBS1 = . THEN OBS1 = 0;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've looked at the IFN function but cannot get it to work or find any example to reference.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230100#M268027</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2015-10-15T15:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230101#M268028</link>
      <description>&lt;P&gt;If statements dont function in proc sql but you can do either of the following.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Case
      when obs1 = . then 0
      else obs1
end as obs1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or you can simply do this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sum(obs1, 0) as obs1&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230101#M268028</guid>
      <dc:creator>dsbihill</dc:creator>
      <dc:date>2015-10-15T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230104#M268029</link>
      <description>&lt;P&gt;Why SQL and not a data step?&lt;/P&gt;&lt;P&gt;IMHO the most elegant solution is the coalesce() coalescec() functions.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230104#M268029</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-10-15T15:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230105#M268030</link>
      <description>&lt;P&gt;I am actually trying to perform an AVG function in a simple SQL statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT OBS1,
OBS2,
AVG(OBS3) AS AVGOBS
FROM TABLE1;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm trying to graph results but null values throws the results off.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230105#M268030</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2015-10-15T15:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230107#M268031</link>
      <description>Just trying to clean up code and learn different ways honestly. If I can't get my SQL code to work the way I want I always revert back to the sturdy DATA statement.</description>
      <pubDate>Thu, 15 Oct 2015 15:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230107#M268031</guid>
      <dc:creator>G_I_Jeff</dc:creator>
      <dc:date>2015-10-15T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL: can you replace missing value(s)??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230127#M268032</link>
      <description>&lt;P&gt;If just to replace the missing value, A simple SUM should do:&lt;/P&gt;&lt;PRE&gt;PROC SQL;
SELECT OBS1,
OBS2,
SUM(OBS3,0) AS OBS3
FROM TABLE1;
QUIT;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 17:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-can-you-replace-missing-value-s/m-p/230127#M268032</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-10-15T17:12:17Z</dc:date>
    </item>
  </channel>
</rss>

