<?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: Syntax error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432769#M68740</link>
    <description>&lt;PRE&gt;proc sql;
  create table TEST3 as
  select distinct BB.*
  from   (select mmcor_cd, srv_type_cd, srv_dt, CLAIM_LINE_NUM, 
                 claim_class_cd, max(claim_line_num) as max_claim 
          from claim_trans group by tcn) aa, 
          claim_ppv bb 
  where aa.tcn = bb.tcn and bb.claim_line_num = aa.max_claim
  order by tcn, claim_line_num ;
quit;&lt;/PRE&gt;
&lt;P&gt;Well, to start you have an extra comma after bb.* which shouldn't be there...&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 14:54:02 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-01-31T14:54:02Z</dc:date>
    <item>
      <title>Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432766#M68739</link>
      <description>&lt;P&gt;Can anybody help me find my syntax error in the code below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table test3 as
select distinct bb.* ,
from ((select mmcor_cd, srv_type_cd, srv_dt, CLAIM_LINE_NUM, claim_class_cd, max(claim_line_num) as max_claim from claim_trans group by tcn)) 
aa, claim_ppv bb 
where aa.tcn = bb.tcn and bb.claim_line_num = aa.max_claim
order by tcn, claim_line_num ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="err.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18230iF79D18D237E52F52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="err.JPG" alt="err.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432766#M68739</guid>
      <dc:creator>lupegon34</dc:creator>
      <dc:date>2018-01-31T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432769#M68740</link>
      <description>&lt;PRE&gt;proc sql;
  create table TEST3 as
  select distinct BB.*
  from   (select mmcor_cd, srv_type_cd, srv_dt, CLAIM_LINE_NUM, 
                 claim_class_cd, max(claim_line_num) as max_claim 
          from claim_trans group by tcn) aa, 
          claim_ppv bb 
  where aa.tcn = bb.tcn and bb.claim_line_num = aa.max_claim
  order by tcn, claim_line_num ;
quit;&lt;/PRE&gt;
&lt;P&gt;Well, to start you have an extra comma after bb.* which shouldn't be there...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432769#M68740</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-31T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432770#M68741</link>
      <description>&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table table_name as&lt;/P&gt;&lt;P&gt;select column_names&lt;/P&gt;&lt;P&gt;from table&amp;nbsp;&lt;/P&gt;&lt;P&gt;where restrictions ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432770#M68741</guid>
      <dc:creator>srinath3111</dc:creator>
      <dc:date>2018-01-31T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432773#M68742</link>
      <description>&lt;P&gt;That was it! Thanks. I knew it was gonna be something dumb&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432773#M68742</guid>
      <dc:creator>lupegon34</dc:creator>
      <dc:date>2018-01-31T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432776#M68743</link>
      <description>&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table TEST3 as&lt;/P&gt;&lt;P&gt;select distinct BB.* from&lt;/P&gt;&lt;P&gt;(select mmcor_cd, srv_type_cd, srv_dt, CLAIM_LINE_NUM, claim_class_cd, max(claim_line_num) as max_claim from claim_trans group by tcn) aa, claim_ppv bb where aa.tcn = bb.tcn and bb.claim_line_num = aa.max_claim order by tcn, claim_line_num ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error/m-p/432776#M68743</guid>
      <dc:creator>srinath3111</dc:creator>
      <dc:date>2018-01-31T15:01:48Z</dc:date>
    </item>
  </channel>
</rss>

