<?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: i am getting the error in the last proc statement in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547388#M7312</link>
    <description>&lt;P&gt;Look at the first select that creates mismatches1. The column is not included in that, so it won't be included in the dataset.&lt;/P&gt;</description>
    <pubDate>Sat, 30 Mar 2019 05:12:48 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-03-30T05:12:48Z</dc:date>
    <item>
      <title>i am getting the error in the last proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547382#M7309</link>
      <description>&lt;DIV&gt;proc sql;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; create table work.mismatches1 as&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; select distinct h.product_id,churn_month&lt;/DIV&gt;&lt;DIV&gt;from class1.smb as h&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; left&amp;nbsp; join churners as b&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; on h.product_id=b.product_id;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; quit;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc sql outobs=200 ;&lt;/DIV&gt;&lt;DIV&gt;select product_id ,&lt;/DIV&gt;&lt;DIV&gt;case&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; when churn_month is not null then '1'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else '0'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end as new_column&lt;/DIV&gt;&lt;DIV&gt;from work.mismatches1;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV&gt;proc sql outobs=200;&lt;/DIV&gt;&lt;DIV&gt;select * ,mismatches1.new_column&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;from class1.smb&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;left join mismatches1&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;on smb.product_id=mismatches1.product_id;&lt;/DIV&gt;&lt;DIV&gt;quit;&lt;/DIV&gt;&lt;DIV class="yj6qo"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="yj6qo"&gt;ERROR: Column new_column could not be found in the table/view identified with the correlation name MISMATCHES1.&lt;/DIV&gt;</description>
      <pubDate>Sat, 30 Mar 2019 03:53:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547382#M7309</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-30T03:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: i am getting the error in the last proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547383#M7310</link>
      <description>&lt;P&gt;Error itself says that column new_column is not available in your mismatches1 table, check the table columns of mismatches1.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 04:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547383#M7310</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2019-03-30T04:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: i am getting the error in the last proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547387#M7311</link>
      <description>&lt;P&gt;the second proc sql contains the mismatches table which gets executed that means the table contains the new_column . where am i wrong ?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 05:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547387#M7311</guid>
      <dc:creator>Shrutibhatnagar</dc:creator>
      <dc:date>2019-03-30T05:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: i am getting the error in the last proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547388#M7312</link>
      <description>&lt;P&gt;Look at the first select that creates mismatches1. The column is not included in that, so it won't be included in the dataset.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 05:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547388#M7312</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-30T05:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: i am getting the error in the last proc statement</title>
      <link>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547389#M7313</link>
      <description>The second SQL generates a report only.  It doesn't create a table.  There is no table that contains new_column.  To create a table begin with&lt;BR /&gt;&lt;BR /&gt;Create table ........&lt;BR /&gt;&lt;BR /&gt;just like you did in the first sql.</description>
      <pubDate>Sat, 30 Mar 2019 05:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/i-am-getting-the-error-in-the-last-proc-statement/m-p/547389#M7313</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-30T05:32:46Z</dc:date>
    </item>
  </channel>
</rss>

