<?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: The following columns were not found in the contributing tables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/387186#M24966</link>
    <description>&lt;P&gt;I am using SAS EG to create and reformat a time variable, but it gave me this error "ERROR: The following columns were not found in the contributing tables: time_v2."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.COOL_DATA_02 AS&lt;BR /&gt;SELECT t1.id,&lt;/P&gt;&lt;P&gt;/* time_v2, to correct typo */&lt;BR /&gt;(CASE&lt;BR /&gt;WHEN t1.id=3177 and t1.hospital_id=7 and t1.site_id=210&lt;BR /&gt;THEN "15:14"&lt;BR /&gt;ELSE t1.time&lt;BR /&gt;END) LABEL="Age_formatted" AS time_v2,&lt;/P&gt;&lt;P&gt;/* time_v3, to correct format */&lt;BR /&gt;(INPUT(time_v2, TIME5.)) AS time_v3&lt;/P&gt;&lt;P&gt;FROM WORK.COOL_DATA_01 t1;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 20:54:56 GMT</pubDate>
    <dc:creator>KubiK888</dc:creator>
    <dc:date>2017-08-10T20:54:56Z</dc:date>
    <item>
      <title>ERROR: The following columns were not found in the contributing tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/387186#M24966</link>
      <description>&lt;P&gt;I am using SAS EG to create and reformat a time variable, but it gave me this error "ERROR: The following columns were not found in the contributing tables: time_v2."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.COOL_DATA_02 AS&lt;BR /&gt;SELECT t1.id,&lt;/P&gt;&lt;P&gt;/* time_v2, to correct typo */&lt;BR /&gt;(CASE&lt;BR /&gt;WHEN t1.id=3177 and t1.hospital_id=7 and t1.site_id=210&lt;BR /&gt;THEN "15:14"&lt;BR /&gt;ELSE t1.time&lt;BR /&gt;END) LABEL="Age_formatted" AS time_v2,&lt;/P&gt;&lt;P&gt;/* time_v3, to correct format */&lt;BR /&gt;(INPUT(time_v2, TIME5.)) AS time_v3&lt;/P&gt;&lt;P&gt;FROM WORK.COOL_DATA_01 t1;&lt;BR /&gt;QUIT;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/387186#M24966</guid>
      <dc:creator>KubiK888</dc:creator>
      <dc:date>2017-08-10T20:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: The following columns were not found in the contributing tables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/387188#M24967</link>
      <description>&lt;P&gt;If the field is being calculated in the same query you need to use the key word CALCULATED before it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE WORK.COOL_DATA_02 AS
SELECT t1.id,
/* time_v2, to correct typo */
(CASE
WHEN t1.id=3177 and t1.hospital_id=7 and t1.site_id=210
THEN "15:14"
ELSE t1.time
END) LABEL="Age_formatted" AS time_v2,
/* time_v3, to correct format */
(INPUT(CALCULATED time_v2, TIME5.)) AS time_v3
FROM WORK.COOL_DATA_01 t1;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 20:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-The-following-columns-were-not-found-in-the-contributing/m-p/387188#M24967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-10T20:57:24Z</dc:date>
    </item>
  </channel>
</rss>

