<?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 sas proc sql create table / initialize value to zero in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-proc-sql-create-table-initialize-value-to-zero/m-p/434522#M28071</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to initialize selected variables to zero to replace missing value by zero in proc sql create table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below, I would like to have missing(web) and missing(internet) set to zero.&lt;/P&gt;&lt;P&gt;How is it possible to do that in a pro sql procedure?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;create table internet as&lt;/P&gt;&lt;P&gt;select A.id, A.class, A.date,A.performer,A.title,A.category, A.web, B.internet&lt;/P&gt;&lt;P&gt;from dataset1&amp;nbsp;A full join&lt;/P&gt;&lt;P&gt;dataset2&amp;nbsp;B&lt;/P&gt;&lt;P&gt;on A.id=B.id&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2018 13:17:54 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2018-02-06T13:17:54Z</dc:date>
    <item>
      <title>sas proc sql create table / initialize value to zero</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-proc-sql-create-table-initialize-value-to-zero/m-p/434522#M28071</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know how to initialize selected variables to zero to replace missing value by zero in proc sql create table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below, I would like to have missing(web) and missing(internet) set to zero.&lt;/P&gt;&lt;P&gt;How is it possible to do that in a pro sql procedure?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;/P&gt;&lt;P&gt;create table internet as&lt;/P&gt;&lt;P&gt;select A.id, A.class, A.date,A.performer,A.title,A.category, A.web, B.internet&lt;/P&gt;&lt;P&gt;from dataset1&amp;nbsp;A full join&lt;/P&gt;&lt;P&gt;dataset2&amp;nbsp;B&lt;/P&gt;&lt;P&gt;on A.id=B.id&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-proc-sql-create-table-initialize-value-to-zero/m-p/434522#M28071</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-02-06T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: sas proc sql create table / initialize value to zero</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-proc-sql-create-table-initialize-value-to-zero/m-p/434523#M28072</link>
      <description>&lt;P&gt;Use the coalesce function.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 13:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/sas-proc-sql-create-table-initialize-value-to-zero/m-p/434523#M28072</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-06T13:25:37Z</dc:date>
    </item>
  </channel>
</rss>

