<?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: an error message in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548445#M74434</link>
    <description>&lt;P&gt;I can't see your data, so this is untested, but I think this gives you what you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table me AS SELECT a.n_cfo,a.n_prod,a.n_disexp,b.Is_there_any_defect_in_internal,c.Fraud_Dummy
from real as a, defect as b
where a.code=b.code and a.year=b.year
full join violation as c
on b.code=c.code and b.year=c.year;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Apr 2019 10:12:12 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-04-04T10:12:12Z</dc:date>
    <item>
      <title>an error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548426#M74433</link>
      <description>&lt;P&gt;Hello everyone&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run the following code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table me AS SELECT a.n_cfo,a.n_prod,a.n_disexp,b.Is_there_any_defect_in_internal,c.Fraud_Dummy
from real as a, defect as b
full join violation as c
on a.code=b.code=c.code and a.year=b.year=c.year;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but i got the following message&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;62 proc sql;&lt;BR /&gt;63 create table me AS SELECT&lt;BR /&gt;63 ! a.n_cfo,a.n_prod,a.n_disexp,b.Is_there_any_defect_in_internal,c.Fraud_Dummy&lt;BR /&gt;64 from real as a, defect as b&lt;BR /&gt;65 full join violation as c&lt;BR /&gt;66 on a.code=b.code=c.code and a.year=b.year=c.year;&lt;BR /&gt;ERROR: Correlated reference to column code is not contained within a subquery.&lt;BR /&gt;ERROR: Correlated reference to column year is not contained within a subquery.&lt;BR /&gt;67 quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;###&lt;/P&gt;&lt;P&gt;so i do not know where the error i checked my data very well&amp;nbsp;&lt;/P&gt;&lt;P&gt;please explain such an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 08:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548426#M74433</guid>
      <dc:creator>Radwan</dc:creator>
      <dc:date>2019-04-04T08:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: an error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548445#M74434</link>
      <description>&lt;P&gt;I can't see your data, so this is untested, but I think this gives you what you want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
create table me AS SELECT a.n_cfo,a.n_prod,a.n_disexp,b.Is_there_any_defect_in_internal,c.Fraud_Dummy
from real as a, defect as b
where a.code=b.code and a.year=b.year
full join violation as c
on b.code=c.code and b.year=c.year;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Apr 2019 10:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548445#M74434</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-04T10:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: an error message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548696#M74448</link>
      <description>&lt;P&gt;but this option removes the codes that do not exist in the last file.&lt;/P&gt;&lt;P&gt;for instance: the last file contains 1500 firms code and the rest contain 1900&amp;nbsp;&lt;/P&gt;&lt;P&gt;so this option ((where) without full join) will eliminate 400 codes&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 06:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/an-error-message/m-p/548696#M74448</guid>
      <dc:creator>Radwan</dc:creator>
      <dc:date>2019-04-05T06:45:29Z</dc:date>
    </item>
  </channel>
</rss>

