<?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: Adding values to left join missing values in proc sql? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-values-to-left-join-missing-values-in-proc-sql/m-p/478876#M286429</link>
    <description>&lt;P&gt;Why did you create new thread?&lt;/P&gt;
&lt;P&gt;Since the 2 questions are still unanswered, you won't get much help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make an effort to explain&amp;nbsp;the final output properly:&lt;/P&gt;
&lt;P&gt;Provide example data and expected output and processing logic you want implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marking this as spam to avoid duplicates.&lt;/P&gt;
&lt;P&gt;Please use the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-to-add-to-missing-NULL-values-after-creating-a-table-from/m-p/478843#M58630" target="_self"&gt;original thread&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 01:02:58 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-07-18T01:02:58Z</dc:date>
    <item>
      <title>Adding values to left join missing values in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-values-to-left-join-missing-values-in-proc-sql/m-p/478868#M286428</link>
      <description>&lt;P&gt;I have created a new table out of two datasets using left join. However since some of the format is incorrect in dataset 2, there are some missing values in the joined new table. I know which values to add but I am stuck on the syntax. How do I add on to the missing values in this code? Do I make a seperate proc sql? or do I use if/else statements? If it is something like if/else, where would I put them? If it is a different concept, please let me know. Feel free to use the sample code from my work below or simplify it to whatever you would use. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table final as&lt;BR /&gt;select L.*, R.*&lt;BR /&gt;from A as L&lt;BR /&gt;left join&amp;nbsp;B as R&lt;BR /&gt;on (substr(L.One, length(L.One)-1)=substr(R.Two,length(R.Two)-1)&lt;BR /&gt;and substr(L.State, length(L.State)-1)) ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc print data = final;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 23:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-values-to-left-join-missing-values-in-proc-sql/m-p/478868#M286428</guid>
      <dc:creator>Ramsha</dc:creator>
      <dc:date>2018-07-17T23:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values to left join missing values in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-values-to-left-join-missing-values-in-proc-sql/m-p/478876#M286429</link>
      <description>&lt;P&gt;Why did you create new thread?&lt;/P&gt;
&lt;P&gt;Since the 2 questions are still unanswered, you won't get much help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please make an effort to explain&amp;nbsp;the final output properly:&lt;/P&gt;
&lt;P&gt;Provide example data and expected output and processing logic you want implemented.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marking this as spam to avoid duplicates.&lt;/P&gt;
&lt;P&gt;Please use the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-to-add-to-missing-NULL-values-after-creating-a-table-from/m-p/478843#M58630" target="_self"&gt;original thread&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 01:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-values-to-left-join-missing-values-in-proc-sql/m-p/478876#M286429</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-18T01:02:58Z</dc:date>
    </item>
  </channel>
</rss>

