<?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: SQL Passthrough in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710652#M218813</link>
    <description>A data step can definitely do that, but you likely need a sort ahead of time. You can also look at the monotonic() function but SAS SQL doesn't support PARTITION. &lt;BR /&gt;&lt;BR /&gt;Enumeration is usually straightforward:&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you need further help, post some example data, fake data is 100% fine, and what code you tried that isn't work. First and BY should definitely be able to replicate the order. If you have ties that will affect the results though, so it may not be exactly identical as SQL doesn't enforce any sort order on data sets.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Jan 2021 18:20:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-01-11T18:20:05Z</dc:date>
    <item>
      <title>SQL Passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710613#M218782</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've a situation&amp;nbsp; like, i need to use PL/SQL functionality in PROC SQL , but i don't want to connect to any database ,i've all my datasets in work library only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to use PL/SQL,SQL functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do it in SAS. Suggestions are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 16:32:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710613#M218782</guid>
      <dc:creator>pavan1</dc:creator>
      <dc:date>2021-01-11T16:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710635#M218800</link>
      <description>&lt;P&gt;No. SQL Passthrough literally takes your PL/SQL code and &lt;STRONG&gt;passes&lt;/STRONG&gt; it to the Oracle server, so it requires the Oracle server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming you're trying to avoid recoding something in PL/SQL or it's something you're more familiar with and would prefer to use rather than SAS data steps? Otherwise, data steps offer a ton of functionality to accomplish what you need.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/66560"&gt;@pavan1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i've a situation&amp;nbsp; like, i need to use PL/SQL functionality in PROC SQL , but i don't want to connect to any database ,i've all my datasets in work library only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just wanted to use PL/SQL,SQL functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to do it in SAS. Suggestions are appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 17:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710635#M218800</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-11T17:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710649#M218810</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;Thanks for the Reply, yes i would like to replicate row_number() over (partition by var1,var2 order by var1, var2, var3) ,for which i'm yielding wrong results when i try to replicate in Data Step with order by and first.var concepts.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Jan 2021 18:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710649#M218810</guid>
      <dc:creator>pavan1</dc:creator>
      <dc:date>2021-01-11T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Passthrough</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710652#M218813</link>
      <description>A data step can definitely do that, but you likely need a sort ahead of time. You can also look at the monotonic() function but SAS SQL doesn't support PARTITION. &lt;BR /&gt;&lt;BR /&gt;Enumeration is usually straightforward:&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you need further help, post some example data, fake data is 100% fine, and what code you tried that isn't work. First and BY should definitely be able to replicate the order. If you have ties that will affect the results though, so it may not be exactly identical as SQL doesn't enforce any sort order on data sets.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jan 2021 18:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-Passthrough/m-p/710652#M218813</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-01-11T18:20:05Z</dc:date>
    </item>
  </channel>
</rss>

