<?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: PROC SQL issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229341#M267990</link>
    <description>&lt;P&gt;These options do not exist in PROC SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They exist in DATA steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, if you need to use these options, you would use a DATA step and not PROC SQL.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2015 18:22:06 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-10-09T18:22:06Z</dc:date>
    <item>
      <title>PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229339#M267989</link>
      <description>&lt;P&gt;I have used If first. and last. options in data step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, couldn't find any similar options in proc sql.&lt;/P&gt;&lt;P&gt;Please provide me the solution for this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 18:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229339#M267989</guid>
      <dc:creator>jaymin_shah</dc:creator>
      <dc:date>2015-10-09T18:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229341#M267990</link>
      <description>&lt;P&gt;These options do not exist in PROC SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They exist in DATA steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, if you need to use these options, you would use a DATA step and not PROC SQL.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 18:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229341#M267990</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-09T18:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229375#M267991</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;Conceptually, SQL operates on unordered sets of records. Operations such as &lt;/SPAN&gt;&lt;STRONG&gt;first&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;last&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;previous&lt;/STRONG&gt;&lt;SPAN style="line-height: 20px;"&gt; have no meaning in that context.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;The DATA step on the other hand operates on a sequence of records. You will sometimes need to sort your data before running the DATA step.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="line-height: 20px;"&gt;Use both! You will twice as efficient!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 21:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229375#M267991</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-09T21:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229410#M267992</link>
      <description>"Please provide me the solution for this issue"&lt;BR /&gt;Yeah, what exactly is your issue?&lt;BR /&gt;Syntax itself us never an "issue".</description>
      <pubDate>Sat, 10 Oct 2015 08:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229410#M267992</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-10-10T08:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229428#M267993</link>
      <description>Linus&lt;BR /&gt;I think the issue is establishing the first and last rows within groups. The limitation of sql was not justified.&lt;BR /&gt;The result (finding first. And last. Rows) is native to data steps. My issue is the unexplained constraint (using sql).&lt;BR /&gt;But it really is no issue at all.&lt;BR /&gt;</description>
      <pubDate>Sat, 10 Oct 2015 13:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229428#M267993</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2015-10-10T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229430#M267994</link>
      <description>&lt;P&gt;I believe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats﻿&lt;/a&gt;&amp;nbsp;comment nailed it.&lt;/P&gt;
&lt;P&gt;Having said that: Some database SQL extensions provide "first" and "last" as analytics functions&amp;nbsp;&lt;A href="http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions056.htm" target="_blank"&gt;http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions056.htm&lt;/A&gt;&amp;nbsp;... but then: They don't have the SAS data step and implementing the same with&amp;nbsp;PLSQL can be painful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2015 14:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-issue/m-p/229430#M267994</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-10-10T14:12:54Z</dc:date>
    </item>
  </channel>
</rss>

