<?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: SAS error proc sql union in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-proc-sql-union/m-p/496106#M131113</link>
    <description>&lt;P&gt;Try removing the C from your ORDER BY&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; order by enrolid, svcdate, prod_grp&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Sep 2018 02:48:42 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-09-17T02:48:42Z</dc:date>
    <item>
      <title>SAS error proc sql union</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-proc-sql-union/m-p/496105#M131112</link>
      <description>&lt;P&gt;hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to figure out the erorr in this code. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: Remote submit to MYNODE complete.
43   rsubmit ;
NOTE: Remote submit to MYNODE commencing.
303  *union t table from medicare and medicad together ;
304  proc sql;
305
306      *commercial;
307
308      create table data._03_t_table as
309          select distinct a.*,b.dtstart,b.dtend
310          from data._01_claims as a
311          inner join original.ccaet141 as b
312          on a.enrolid =b.enrolid
313      union
314          select distinct c.*,d.dtstart,d.dtend
315          from data._01_claims as c
316          inner join original.ccaet151 as d
317          on c.enrolid =d.enrolid
318          order by c.enrolid,c.svcdate,c.prod_grp
319      ;
ERROR: Unresolved reference to table/correlation name c.
ERROR: Unresolved reference to table/correlation name c.
ERROR: Unresolved reference to table/correlation name c.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
320  quit ;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: Remote submit to MYNODE complete.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Sep 2018 02:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-proc-sql-union/m-p/496105#M131112</guid>
      <dc:creator>manya92</dc:creator>
      <dc:date>2018-09-17T02:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS error proc sql union</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-error-proc-sql-union/m-p/496106#M131113</link>
      <description>&lt;P&gt;Try removing the C from your ORDER BY&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; order by enrolid, svcdate, prod_grp&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Sep 2018 02:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-error-proc-sql-union/m-p/496106#M131113</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-17T02:48:42Z</dc:date>
    </item>
  </channel>
</rss>

