<?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 programming in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883338#M349006</link>
    <description>&lt;P&gt;RANK and OVER are not part of the ANSI SQL standard that PROC SQL implements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is not needed since you can just do it with a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fin;
  set test;
  by rel_number expection_reason;
  rn+1;
  if first.rel_number then rn=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2023 16:57:03 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-07-03T16:57:03Z</dc:date>
    <item>
      <title>syntax error in sas programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883335#M349004</link>
      <description>&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE FIN AS&lt;BR /&gt;SELECT *,&lt;BR /&gt;RANK() OVER(partition by rel_number order by exception_reason)as rn&lt;BR /&gt;from test;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can anyone please helpme what is the syntax error in the above code.&lt;BR /&gt;i got a error message as&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Akshaya_1397_0-1688398389319.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85532i85F8AB98E4B422FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Akshaya_1397_0-1688398389319.png" alt="Akshaya_1397_0-1688398389319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 15:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883335#M349004</guid>
      <dc:creator>Akshaya_1397</dc:creator>
      <dc:date>2023-07-03T15:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in sas programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883337#M349005</link>
      <description>&lt;P&gt;The following links should help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/sqlproc/n1cq72kb6ab41in1pzngij4dhek1.htm" target="_self"&gt;SQL Procedure Components&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-BASE-how-can-i-perform-Over-Partition/td-p/484846" target="_self"&gt;SAS BASE - how can i perform Over Partition&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 16:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883337#M349005</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2023-07-03T16:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: syntax error in sas programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883338#M349006</link>
      <description>&lt;P&gt;RANK and OVER are not part of the ANSI SQL standard that PROC SQL implements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is not needed since you can just do it with a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fin;
  set test;
  by rel_number expection_reason;
  rn+1;
  if first.rel_number then rn=1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 16:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/syntax-error-in-sas-programming/m-p/883338#M349006</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-03T16:57:03Z</dc:date>
    </item>
  </channel>
</rss>

