<?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: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314562#M1534</link>
    <description>&lt;P&gt;What error? I don't see any error in your code or log.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2016 07:46:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-11-27T07:46:22Z</dc:date>
    <item>
      <title>ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314551#M1524</link>
      <description>&lt;P&gt;can anyone &amp;nbsp;help to look at below log, i do not know where is the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE GC.GermanCredit_Guanantor&lt;BR /&gt;AS&lt;BR /&gt;SELECT GermanCredit.Guarantor,GermanCredit.CO-APPLICANT&lt;BR /&gt;,(CASE&lt;BR /&gt;WHEN ( Guarantor =1 or CO-APPLICANT = 1) THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;END) AS Guarantor&lt;BR /&gt;FROM GC.GermanCredit;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;64 FROM GC.GermanCredit;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Column CO could not be found in the table/view identified with the correlation name GERMANCREDIT.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13172iF62B389C55DD68A8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午7.57.34.png" title="屏幕快照 2016-11-27 上午7.57.34.png" /&gt;</description>
      <pubDate>Sun, 27 Nov 2016 06:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314551#M1524</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T06:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314553#M1526</link>
      <description>&lt;P&gt;GermanCredit.CO-APPLICANT -&amp;gt; this is not a valid variable name. It's either an underscore or possibly GermanCredit.'CO-APPLICANT'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a proc contents on the dataset and see what the variable name is.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314553#M1526</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-27T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314554#M1527</link>
      <description>&lt;P&gt;but in the data, it does show as CO-APPLICANT, see attached screen shot.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13173i4AA993A27143C52A/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午8.11.31.png" title="屏幕快照 2016-11-27 上午8.11.31.png" /&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314554#M1527</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T07:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314556#M1529</link>
      <description>&lt;P&gt;Then it's the second option I indicated with quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to reference it as a name literal.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See details here&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p18cdcs4v5wd2dn1q0x296d3qek6.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p18cdcs4v5wd2dn1q0x296d3qek6.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314556#M1529</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-27T07:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314558#M1531</link>
      <description>&lt;P&gt;i tried it, but it does not show what i want, it still shows as tow columns, not merge to be one column.&lt;/P&gt;&lt;P&gt;what i want it either column shows '1', then it shows results as '1, else'0', but as you can see it does not even merge to be one column.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13174iADE789627877ED31/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午8.18.04.png" title="屏幕快照 2016-11-27 上午8.18.04.png" /&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314558#M1531</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T07:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314559#M1532</link>
      <description>&lt;P&gt;Your CASE statement is incorrect, you can't have two variables with the same name in a data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm surprised the log doesn't have any errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post your corrected code and log please.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To correct your CASE add the alias for each variable and give it a new, unique name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314559#M1532</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-27T07:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314561#M1533</link>
      <description>&lt;P&gt;i change the name to be APPLICANT, and tried to run the log again, but still it shows error.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13175i2B9178E3262A1A63/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午8.33.01.png" title="屏幕快照 2016-11-27 上午8.33.01.png" /&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314561#M1533</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T07:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314562#M1534</link>
      <description>&lt;P&gt;What error? I don't see any error in your code or log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314562#M1534</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-27T07:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314563#M1535</link>
      <description>&lt;P&gt;i got your point, i shall change it to be AS NewGuarantor, otherwise it is the same as the data variable, it works now, appreciate &amp;nbsp;your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE GC.GermanCredittApp&lt;BR /&gt;AS&lt;BR /&gt;SELECT GermanCreditt.Guarantor, GermanCreditt.APPLICANT&lt;BR /&gt;,(CASE&lt;BR /&gt;WHEN (Guarantor = 1 or APPLICANT = 1) THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;END) AS NewGuarantor&lt;BR /&gt;FROM GC.GermanCreditt;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:46:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314563#M1535</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T07:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables: APPLICANT, CO.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314565#M1536</link>
      <description>&lt;P&gt;i got your point, i shall change it to be AS NewGuarantor, otherwise it is the same as the data variable, it works now, appreciate &amp;nbsp;your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE GC.GermanCredittApp&lt;BR /&gt;AS&lt;BR /&gt;SELECT GermanCreditt.Guarantor, GermanCreditt.APPLICANT&lt;BR /&gt;,(CASE&lt;BR /&gt;WHEN (Guarantor = 1 or APPLICANT = 1) THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;END) AS NewGuarantor&lt;BR /&gt;FROM GC.GermanCreditt;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13176iA7D40C01E95E02B5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午8.47.10.png" title="屏幕快照 2016-11-27 上午8.47.10.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13177i24A5639CCDFC7972/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="屏幕快照 2016-11-27 上午8.47.19.png" title="屏幕快照 2016-11-27 上午8.47.19.png" /&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/314565#M1536</guid>
      <dc:creator>Macy</dc:creator>
      <dc:date>2016-11-27T07:47:41Z</dc:date>
    </item>
  </channel>
</rss>

