<?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: I am running this below code in SAS using ROW_NUMBER() function but it's not working throwing be in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/I-am-running-this-below-code-in-SAS-using-ROW-NUMBER-function/m-p/507807#M1519</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242655"&gt;@MuraliK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;48 (SELECT s.shp_trk_nbr as trk_nbr,st.scan_type_acrnm,&lt;BR /&gt;49 s.scan_type_cd ||coalesce(s.excp_type_cd, '') as ScanexcpCd,&lt;BR /&gt;50 v.svc_commit_tmstp,&lt;BR /&gt;51 s.scan_trk_tmstp as scan_tm,&lt;BR /&gt;52 opnl_scan_loc_cd as Scan_loc_cd,&lt;BR /&gt;53&lt;BR /&gt;2 The SAS System 15:39 Thursday, October 25, 2018&lt;/P&gt;
&lt;P&gt;54 row_number() over(partition by s.shp_trk_nbr order by s.scan_trk_tmstp desc) as ScantimeRank,&lt;BR /&gt;____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one help me to find out which function to use in SAS instead of ROW_NUMBER&amp;nbsp; OVER PARTITION .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does ROW_NUMBER&amp;nbsp; OVER PARTITION&amp;nbsp;do? OVER and PARTITION are also not part of SAS ANSI standard Proc SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is supposed to add some sort of RANK perhaps combine the data you are doing and use PROC RANK to add ranks based on some rules. But would have to know what the rules are.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Oct 2018 16:20:10 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-10-26T16:20:10Z</dc:date>
    <item>
      <title>I am running this below code in SAS using ROW_NUMBER() function but it's not working throwing below</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-am-running-this-below-code-in-SAS-using-ROW-NUMBER-function/m-p/507610#M1483</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;48 (SELECT s.shp_trk_nbr as trk_nbr,st.scan_type_acrnm,&lt;BR /&gt;49 s.scan_type_cd ||coalesce(s.excp_type_cd, '') as ScanexcpCd,&lt;BR /&gt;50 v.svc_commit_tmstp,&lt;BR /&gt;51 s.scan_trk_tmstp as scan_tm,&lt;BR /&gt;52 opnl_scan_loc_cd as Scan_loc_cd,&lt;BR /&gt;53&lt;BR /&gt;2 The SAS System 15:39 Thursday, October 25, 2018&lt;/P&gt;&lt;P&gt;54 row_number() over(partition by s.shp_trk_nbr order by s.scan_trk_tmstp desc) as ScantimeRank,&lt;BR /&gt;____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;/P&gt;&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help me to find out which function to use in SAS instead of ROW_NUMBER&amp;nbsp; OVER PARTITION .&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 22:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-am-running-this-below-code-in-SAS-using-ROW-NUMBER-function/m-p/507610#M1483</guid>
      <dc:creator>MuraliK</dc:creator>
      <dc:date>2018-10-25T22:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: I am running this below code in SAS using ROW_NUMBER() function but it's not working throwing be</title>
      <link>https://communities.sas.com/t5/New-SAS-User/I-am-running-this-below-code-in-SAS-using-ROW-NUMBER-function/m-p/507807#M1519</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/242655"&gt;@MuraliK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;48 (SELECT s.shp_trk_nbr as trk_nbr,st.scan_type_acrnm,&lt;BR /&gt;49 s.scan_type_cd ||coalesce(s.excp_type_cd, '') as ScanexcpCd,&lt;BR /&gt;50 v.svc_commit_tmstp,&lt;BR /&gt;51 s.scan_trk_tmstp as scan_tm,&lt;BR /&gt;52 opnl_scan_loc_cd as Scan_loc_cd,&lt;BR /&gt;53&lt;BR /&gt;2 The SAS System 15:39 Thursday, October 25, 2018&lt;/P&gt;
&lt;P&gt;54 row_number() over(partition by s.shp_trk_nbr order by s.scan_trk_tmstp desc) as ScantimeRank,&lt;BR /&gt;____&lt;BR /&gt;22&lt;BR /&gt;76&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&gt;CONTAINS, EQ, EQT, GE, GET, GT, GTT, LE, LET, LIKE, LT, LTT, NE, NET, OR, ^=, |, ||, ~=.&lt;/P&gt;
&lt;P&gt;ERROR 76-322: Syntax error, statement will be ignored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one help me to find out which function to use in SAS instead of ROW_NUMBER&amp;nbsp; OVER PARTITION .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does ROW_NUMBER&amp;nbsp; OVER PARTITION&amp;nbsp;do? OVER and PARTITION are also not part of SAS ANSI standard Proc SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is supposed to add some sort of RANK perhaps combine the data you are doing and use PROC RANK to add ranks based on some rules. But would have to know what the rules are.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 16:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/I-am-running-this-below-code-in-SAS-using-ROW-NUMBER-function/m-p/507807#M1519</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-26T16:20:10Z</dc:date>
    </item>
  </channel>
</rss>

