<?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 Handling missing values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Handling-missing-values/m-p/143308#M38124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if step=1 then step1 =completion_dt;&lt;/P&gt;&lt;P&gt;if step=2 then step2=completion_dt;&lt;/P&gt;&lt;P&gt;if step=3 then step3=completion_dt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want1 as&lt;/P&gt;&lt;P&gt;select a.ln_no,&lt;/P&gt;&lt;P&gt;a.address,&lt;/P&gt;&lt;P&gt;a.city,&lt;/P&gt;&lt;P&gt;b.step1,&lt;/P&gt;&lt;P&gt;b.step2,&lt;/P&gt;&lt;P&gt;b.step3&lt;/P&gt;&lt;P&gt;from main&amp;nbsp; a&lt;/P&gt;&lt;P&gt;inner join&amp;nbsp; want b&lt;/P&gt;&lt;P&gt;on a.ln=b.ln;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the issue.&amp;nbsp; If say step3 has no value then the proc sql statement fails because it is a null value.&amp;nbsp; How can I address this when the value is null however I still need to join the two datasets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 May 2014 04:01:29 GMT</pubDate>
    <dc:creator>Q1983</dc:creator>
    <dc:date>2014-05-03T04:01:29Z</dc:date>
    <item>
      <title>Handling missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Handling-missing-values/m-p/143308#M38124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if step=1 then step1 =completion_dt;&lt;/P&gt;&lt;P&gt;if step=2 then step2=completion_dt;&lt;/P&gt;&lt;P&gt;if step=3 then step3=completion_dt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want1 as&lt;/P&gt;&lt;P&gt;select a.ln_no,&lt;/P&gt;&lt;P&gt;a.address,&lt;/P&gt;&lt;P&gt;a.city,&lt;/P&gt;&lt;P&gt;b.step1,&lt;/P&gt;&lt;P&gt;b.step2,&lt;/P&gt;&lt;P&gt;b.step3&lt;/P&gt;&lt;P&gt;from main&amp;nbsp; a&lt;/P&gt;&lt;P&gt;inner join&amp;nbsp; want b&lt;/P&gt;&lt;P&gt;on a.ln=b.ln;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the issue.&amp;nbsp; If say step3 has no value then the proc sql statement fails because it is a null value.&amp;nbsp; How can I address this when the value is null however I still need to join the two datasets&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 04:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Handling-missing-values/m-p/143308#M38124</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-05-03T04:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handling missing values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Handling-missing-values/m-p/143309#M38125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the code you posted it would not matter if the variable STEP3 had a null value.&lt;/P&gt;&lt;P&gt;Can you post an example with some values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 15:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Handling-missing-values/m-p/143309#M38125</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-05-03T15:57:57Z</dc:date>
    </item>
  </channel>
</rss>

