<?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 Replace the missing value by using coalesce function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386462#M92559</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Proc SQL;&lt;BR /&gt;Select *,Coalesce(MSRP,80000) AS MSRP ,Coalesce(Length,500) AS Length&lt;BR /&gt;From Cars;&lt;BR /&gt;Quit;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;There is no changes happens in the missing values of MSRP and Length. Just added new entries as MSRP and Length again in which replacements happened.&lt;BR /&gt;Anyone help me&amp;nbsp;how to replace the missing value without adding new entries .&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please find the &amp;nbsp;output of above query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS System&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Origin &amp;nbsp; &amp;nbsp; &amp;nbsp; Make MSRP &amp;nbsp; &amp;nbsp;Length &amp;nbsp; MSRP &amp;nbsp;Length&lt;BR /&gt;Australia &amp;nbsp;Audi &amp;nbsp; &amp;nbsp; &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80000 &amp;nbsp;500&lt;BR /&gt;India &amp;nbsp; &amp;nbsp; &amp;nbsp; Benz &amp;nbsp; $80,000 &amp;nbsp; 400 &amp;nbsp; &amp;nbsp; &amp;nbsp; 80000 &amp;nbsp;400&lt;BR /&gt;UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BMW &amp;nbsp;$20,000 &amp;nbsp; &amp;nbsp; . &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20000 &amp;nbsp;500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2017 03:37:57 GMT</pubDate>
    <dc:creator>Divya_Joseph</dc:creator>
    <dc:date>2017-08-09T03:37:57Z</dc:date>
    <item>
      <title>Replace the missing value by using coalesce function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386462#M92559</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Proc SQL;&lt;BR /&gt;Select *,Coalesce(MSRP,80000) AS MSRP ,Coalesce(Length,500) AS Length&lt;BR /&gt;From Cars;&lt;BR /&gt;Quit;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;There is no changes happens in the missing values of MSRP and Length. Just added new entries as MSRP and Length again in which replacements happened.&lt;BR /&gt;Anyone help me&amp;nbsp;how to replace the missing value without adding new entries .&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Please find the &amp;nbsp;output of above query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS System&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Origin &amp;nbsp; &amp;nbsp; &amp;nbsp; Make MSRP &amp;nbsp; &amp;nbsp;Length &amp;nbsp; MSRP &amp;nbsp;Length&lt;BR /&gt;Australia &amp;nbsp;Audi &amp;nbsp; &amp;nbsp; &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;80000 &amp;nbsp;500&lt;BR /&gt;India &amp;nbsp; &amp;nbsp; &amp;nbsp; Benz &amp;nbsp; $80,000 &amp;nbsp; 400 &amp;nbsp; &amp;nbsp; &amp;nbsp; 80000 &amp;nbsp;400&lt;BR /&gt;UK &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BMW &amp;nbsp;$20,000 &amp;nbsp; &amp;nbsp; . &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20000 &amp;nbsp;500&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 03:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386462#M92559</guid>
      <dc:creator>Divya_Joseph</dc:creator>
      <dc:date>2017-08-09T03:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the missing value by using coalesce function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386466#M92561</link>
      <description>&lt;P&gt;When you say select * you select all existing variables, including the original version of your variables. To get only the new version of your variables, you can't use the * shortcut. So, you can either explicitly list all the variables in a select statement or use an update statement such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc SQL;
create table cars as select * from sashelp.cars;
update cars 
set msrp = Coalesce(MSRP,80000), length = Coalesce(Length,500);
Quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Aug 2017 03:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386466#M92561</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-08-09T03:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Replace the missing value by using coalesce function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386471#M92563</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 04:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-the-missing-value-by-using-coalesce-function/m-p/386471#M92563</guid>
      <dc:creator>Divya_Joseph</dc:creator>
      <dc:date>2017-08-09T04:31:21Z</dc:date>
    </item>
  </channel>
</rss>

