<?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 ERROR: Columns could not be found in the table/view identified with the correlation name B. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789391#M252589</link>
    <description>&lt;P&gt;proc sql;&lt;BR /&gt;create table laps_full as&lt;BR /&gt;select A.*, B.ref_desc&lt;/P&gt;&lt;P&gt;from laps As A&lt;BR /&gt;left join reason_ref as B&lt;BR /&gt;on (B.ref_code = A.rsn_cd&lt;BR /&gt;and A.src_app_cd = B.src_type_code)&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone please help me understand why I get the error. I checked the view with alias B and all the columns are present in that view.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 02:20:08 GMT</pubDate>
    <dc:creator>mith123</dc:creator>
    <dc:date>2022-01-11T02:20:08Z</dc:date>
    <item>
      <title>ERROR: Columns could not be found in the table/view identified with the correlation name B.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789391#M252589</link>
      <description>&lt;P&gt;proc sql;&lt;BR /&gt;create table laps_full as&lt;BR /&gt;select A.*, B.ref_desc&lt;/P&gt;&lt;P&gt;from laps As A&lt;BR /&gt;left join reason_ref as B&lt;BR /&gt;on (B.ref_code = A.rsn_cd&lt;BR /&gt;and A.src_app_cd = B.src_type_code)&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone please help me understand why I get the error. I checked the view with alias B and all the columns are present in that view.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 02:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789391#M252589</guid>
      <dc:creator>mith123</dc:creator>
      <dc:date>2022-01-11T02:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Columns could not be found in the table/view identified with the correlation name B.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789392#M252590</link>
      <description>&lt;P&gt;The SAS log isn't usually wrong with that regard. Can you show a proc contents output from each table?&lt;/P&gt;
&lt;P&gt;Makes sure to look at the names and labels. And the actual log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=laps;
run;

proc contents data=reason_ref;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412211"&gt;@mith123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table laps_full as&lt;BR /&gt;select A.*, B.ref_desc&lt;/P&gt;
&lt;P&gt;from laps As A&lt;BR /&gt;left join reason_ref as B&lt;BR /&gt;on (B.ref_code = A.rsn_cd&lt;BR /&gt;and A.src_app_cd = B.src_type_code)&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone please help me understand why I get the error. I checked the view with alias B and all the columns are present in that view.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/412211"&gt;@mith123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table laps_full as&lt;BR /&gt;select A.*, B.ref_desc&lt;/P&gt;
&lt;P&gt;from laps As A&lt;BR /&gt;left join reason_ref as B&lt;BR /&gt;on (B.ref_code = A.rsn_cd&lt;BR /&gt;and A.src_app_cd = B.src_type_code)&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone please help me understand why I get the error. I checked the view with alias B and all the columns are present in that view.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 02:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789392#M252590</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-11T02:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Columns could not be found in the table/view identified with the correlation name B.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789406#M252602</link>
      <description>&lt;P&gt;How did you "check the view"? Did you use it as source in a data step, or open it in a table viewer?&lt;/P&gt;
&lt;P&gt;The view &lt;U&gt;code&lt;/U&gt; itself is not a measure. You can successfully define a SQL view although variables are not present in the source table(s).&lt;/P&gt;
&lt;P&gt;You need to check all tables used in the view.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 06:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/789406#M252602</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-11T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Columns could not be found in the table/view identified with the correlation name B.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/932465#M366820</link>
      <description>&lt;P&gt;when you use proc contents and look at the table you will see that SAS has label names and variable names separately but linked. So, you might be using the label name that caused the error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 19:02:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/932465#M366820</guid>
      <dc:creator>Sasuser2024</dc:creator>
      <dc:date>2024-06-14T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Columns could not be found in the table/view identified with the correlation name B.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/932550#M366855</link>
      <description>&lt;P&gt;Columns?&amp;nbsp; Do you mean variables?&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Do the variables with a NAME value of&amp;nbsp;ref_desc,&amp;nbsp;ref_code and src_type_code exist in the dataset referenced as B?&amp;nbsp; Run PROC CONTENTS and check.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;View?&amp;nbsp; Is the dataset referenced a B a VIEW?&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the definition of the view?&amp;nbsp; Perhaps the datasets that the view queries have changed so that one or more of those three variables no longer exist or have different names.&lt;/LI&gt;
&lt;LI&gt;Is it a view into some foreign database?&amp;nbsp; Does that database use case sensitive variable naming (examples include postgresql and Redshift).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 18:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Columns-could-not-be-found-in-the-table-view-identified/m-p/932550#M366855</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-06-15T18:03:27Z</dc:date>
    </item>
  </channel>
</rss>

